PrincipalContext Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Encapsulates the server or domain against which all operations are performed, the container that is used as the base of those operations, and the credentials used to perform the operations.
public ref class PrincipalContext : IDisposable
public class PrincipalContext : IDisposable
[System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)]
public class PrincipalContext : IDisposable
type PrincipalContext = class
interface IDisposable
[<System.Security.SecurityCritical(System.Security.SecurityCriticalScope.Everything)>]
type PrincipalContext = class
interface IDisposable
Public Class PrincipalContext
Implements IDisposable
- Inheritance
-
PrincipalContext
- Attributes
- Implements
For search operations, the principal context defines the search base, and for insert operations the context defines the container into which the object is inserted.
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type, name, container, context options, username, and password. |
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type, name, container, and context options. |
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type, name, container, username, and password. |
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type, name, username, and password. |
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type, name, and container. |
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type and name. |
Principal |
Initializes a new instance of the PrincipalContext class with the specified context type. |
Connected |
Gets the name of the server to which the principal context is connected. |
Container |
Gets the value specified in the container parameter in the constructor. |
Context |
Gets the context type that specifies the type of store for the principal context. |
Name |
Gets the value specified as the |
Options |
Gets the options specified in the |
User |
Gets the value specified in the username parameter in the constructor. |
Dispose() |
Disposes the current instance of the PrincipalContext object. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
Get |
Serves as the default hash function. (Inherited from Object) |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
Validate |
Creates the connections to the server and returns a Boolean value that specifies whether the specified user name and password are valid. This method performs fast credential validation of the username and password. |
Validate |
Creates the connections to the server and returns a Boolean value that specifies whether the specified username and password are valid. |
Prodotto | Versioni |
---|---|
.NET | 8 (package-provided), 9 (package-provided) |
.NET Framework | 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1 |
.NET Standard | 2.0 (package-provided) |
Feedback su .NET
.NET è un progetto di open source. Selezionare un collegamento per fornire feedback: