Session Class |
The Session type exposes the following members.
| Name | Description | |
|---|---|---|
| AccountDisplayName | Gets the display name of the Account associated with the session. | |
| AccountId | Gets the ID of the Account associated with the session. | |
| AccountName | Gets the unique name of the Account associated with the session. | |
| AllowedIPAddresses | Gets the allowed IP addresses and ranges of the session. | |
| ApplicationPrivilegeIds | Gets the IDs of application privileges effectively granted to the session. | |
| CreatedTime | Gets the time (UTC) the Session was created. | |
| Culture | Gets the culture associated with the session. | |
| CustomAttributes | Gets the effective custom attributes associated with the session. | |
| ExternalGroupAccountMembershipIds | Gets the IDs of non-Windows external group accounts which contain the account associated with the session. | |
| FederatedAuthenticationProviderId | Gets the ID of the federated authentication provider which created the session. | |
| GroupMembershipIds | Gets the IDs of groups which contain the account associated with the session. | |
| Id | Gets the unique identifier of the session. | |
| ImpersonationKind | Gets the impersonation kind of the current session. | |
| ImpersonationSessionId | Gets the ID of the session which is being impersonated or which was used to impersonate this session. | |
| IsAdministrator | Gets a value indicating whether the session has system administrator privileges. | |
| IsAnonymousAccount | Gets a value indicating whether the session represents the anonymous account. | |
| IsApiAccount | Gets a value indicating whether the session corresponds to an API account. | |
| IsSeatReserved | Gets a value indicating whether the session corresponds to a reserved seat. | |
| IsTenantAdministrator | Gets a value indicating whether the session has administrative privileges for the associated tenant. | |
| IsWindowsAccount | Gets a value indicating whether the session corresponds to a Windows account. | |
| LogOnToken | Gets the log on token of the session. | |
| SeatKind | Gets the kind of seat associated with the session. | |
| SeatPoolId | Gets the ID of the tenant whose seat pool was used to create the session. | |
| SessionKind | Gets the kind of the session. | |
| TenantExpiryDate | Gets the date when the tenant expires. | |
| TenantId | Gets the ID of the tenant associated with the session. | |
| TimeZone | Gets the time zone associated with the session. | |
| UserData | Gets the user data associated with the session. | |
| WindowsGroupAccountMembershipIds | Gets the IDs of windows group accounts which contain the account associated with the session. |
| Name | Description | |
|---|---|---|
| DemandAdministrator | Requires that the session has system administration privileges. | |
| DemandPrivilege | Requires that the specified application privilege is granted to the session. | |
| GetCustomAttributeValues | Gets the values of the custom attribute with the specified name. | |
| GetGroupNames | Gets the names of all groups associated with the session. | |
| HasPrivilege | Determines whether the session has the specified application privilege. |