NamedCredentialAttribute Constructor
Initializes a new instance of the NamedCredentialAttribute class.
Syntax
'Declaration Public Function New( _ ByVal typeFromAssembly As Type _ )
'Usage Dim typeFromAssembly As Type Dim instance As New NamedCredentialAttribute(typeFromAssembly)
public NamedCredentialAttribute( Type typeFromAssembly )
public: NamedCredentialAttribute( Type^ typeFromAssembly )
Parameters
- typeFromAssembly
- This should be the type of resource class.
Example
[NamedCredential(typeof(SampleControl))]
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also