你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
LocalUser 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
LocalUser()
初始化 LocalUser 类的新实例。
public LocalUser ();
Public Sub New ()
适用于
LocalUser(String, String, String, IList<PermissionScope>, String, IList<SshPublicKey>, String, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, SystemData)
初始化 LocalUser 类的新实例。
public LocalUser (string id = default, string name = default, string type = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.PermissionScope> permissionScopes = default, string homeDirectory = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.SshPublicKey> sshAuthorizedKeys = default, string sid = default, bool? hasSharedKey = default, bool? hasSshKey = default, bool? hasSshPassword = default, Microsoft.Azure.Management.Storage.Models.SystemData systemData = default);
new Microsoft.Azure.Management.Storage.Models.LocalUser : string * string * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.PermissionScope> * string * System.Collections.Generic.IList<Microsoft.Azure.Management.Storage.Models.SshPublicKey> * string * Nullable<bool> * Nullable<bool> * Nullable<bool> * Microsoft.Azure.Management.Storage.Models.SystemData -> Microsoft.Azure.Management.Storage.Models.LocalUser
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional permissionScopes As IList(Of PermissionScope) = Nothing, Optional homeDirectory As String = Nothing, Optional sshAuthorizedKeys As IList(Of SshPublicKey) = Nothing, Optional sid As String = Nothing, Optional hasSharedKey As Nullable(Of Boolean) = Nothing, Optional hasSshKey As Nullable(Of Boolean) = Nothing, Optional hasSshPassword As Nullable(Of Boolean) = Nothing, Optional systemData As SystemData = Nothing)
参数
- id
- String
资源的完全限定的资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
- name
- String
资源的名称
- type
- String
资源类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”
- permissionScopes
- IList<PermissionScope>
本地用户的权限范围。
- homeDirectory
- String
可选,本地用户主目录。
- sshAuthorizedKeys
- IList<SshPublicKey>
- sid
- String
服务器生成的唯一安全标识符。
- systemData
- SystemData