NTUserPrincipal 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| NTUserPrincipal(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| NTUserPrincipal(String, String) |
使用提供的域和用户名创建Windows用户主体。 |
NTUserPrincipal(IntPtr, JniHandleOwnership)
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。
protected NTUserPrincipal(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Org.Apache.Http.Authentication.NTUserPrincipal : nativeint * Android.Runtime.JniHandleOwnership -> Org.Apache.Http.Authentication.NTUserPrincipal
参数
- transfer
- JniHandleOwnership
指示 JniHandleOwnership如何处理 javaReference
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
NTUserPrincipal(String, String)
使用提供的域和用户名创建Windows用户主体。
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")]
public NTUserPrincipal(string? domain, string? username);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/String;)V", "")>]
new Org.Apache.Http.Authentication.NTUserPrincipal : string * string -> Org.Apache.Http.Authentication.NTUserPrincipal
参数
- domain
- String
域名,或者 null 如果未提供任何域名。 该名称使用英语区域设置以大写形式存储。
- username
- String
用户名。 不得为 null。 其大小写不变。
- 特性
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。