DirectoryConnection.Credential Property

 

The Credential property specifies alternate credentials for the connection object.

Namespace:   System.DirectoryServices.Protocols
Assembly:  System.DirectoryServices.Protocols (in System.DirectoryServices.Protocols.dll)

public virtual NetworkCredential Credential {
	[DirectoryServicesPermissionAttribute(SecurityAction.LinkDemand, 
		Unrestricted = true)]
	[EnvironmentPermissionAttribute(SecurityAction.Assert, Unrestricted = true)]
	[SecurityPermissionAttribute(SecurityAction.Assert, Flags = SecurityPermissionFlag.UnmanagedCode)]
	set;
}

Property Value

Type: System.Net.NetworkCredential

Alternate credentials for the connection object.

If not specified, the default value is null.

.NET Framework
Available since 2.0
Return to top
Show: