DirectoryConnection.Credential Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on 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 {
		Unrestricted = true)]
	[EnvironmentPermissionAttribute(SecurityAction.Assert, Unrestricted = true)]
	[SecurityPermissionAttribute(SecurityAction.Assert, Flags = SecurityPermissionFlag.UnmanagedCode)]

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