DirectoryConnection.Credential Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: