PrincipalContext.Name 属性

定义

获取构造函数中指定作为 name 参数的值。Gets the value specified as the name parameter in the constructor.

public:
 property System::String ^ Name { System::String ^ get(); };
public string Name { get; }
member this.Name : string
Public ReadOnly Property Name As String

属性值

用于Domain上下文类型的域或服务器的名称、 Machine上下文类型的主机名、承载ApplicationDirectory实例的服务器的名称, 或者null如果未设置名称, 则为。The name of the domain or server for Domain contexts types, the host name for Machine context types, the name of the server hosting the ApplicationDirectory instance, or null if no name is set.

适用于