Dela via


ArmDesktopVirtualizationModelFactory.UserSessionData Method

Definition

Initializes a new instance of UserSessionData.

public static Azure.ResourceManager.DesktopVirtualization.UserSessionData UserSessionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string objectId = default, string userPrincipalName = default, Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationType? applicationType = default, Azure.ResourceManager.DesktopVirtualization.Models.UserSessionState? sessionState = default, string activeDirectoryUserName = default, DateTimeOffset? createOn = default);
static member UserSessionData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * string * Nullable<Azure.ResourceManager.DesktopVirtualization.Models.VirtualApplicationType> * Nullable<Azure.ResourceManager.DesktopVirtualization.Models.UserSessionState> * string * Nullable<DateTimeOffset> -> Azure.ResourceManager.DesktopVirtualization.UserSessionData
Public Shared Function UserSessionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional objectId As String = Nothing, Optional userPrincipalName As String = Nothing, Optional applicationType As Nullable(Of VirtualApplicationType) = Nothing, Optional sessionState As Nullable(Of UserSessionState) = Nothing, Optional activeDirectoryUserName As String = Nothing, Optional createOn As Nullable(Of DateTimeOffset) = Nothing) As UserSessionData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

objectId
String

ObjectId of user session. (internal use).

userPrincipalName
String

The user principal name.

applicationType
Nullable<VirtualApplicationType>

Application type of application.

sessionState
Nullable<UserSessionState>

State of user session.

activeDirectoryUserName
String

The active directory user name.

createOn
Nullable<DateTimeOffset>

The timestamp of the user session create.

Returns

A new UserSessionData instance for mocking.

Applies to