MdmSession Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides functionality to start an MDM session with the server.
public ref class MdmSession sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class MdmSession final
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class MdmSession final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class MdmSession
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class MdmSession
Public NotInheritable Class MdmSession
- Inheritance
- Attributes
Windows requirements
Device family |
Windows 10 Creators Update (introduced in 10.0.15063.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v4.0)
|
Remarks
Once a session is complete, the caller can determine the server's response to each alert from the client. By default, sessions persist so clients can look up the results later.
Data from a session can be deleted by calling MdmSession.Delete or MdmSessionManager.DeleteSessionById once the session is complete.
Note: MDM sessions are not abortable. If the caller cancels a session and starts a new one, the original sessions will continue in the background until it's complete.
This API does not expose the server ID or enrollment.
Properties
Alerts |
A vector list of all MdmAlerts for the current session. |
ExtendedError |
The extended error code for an MDM session. |
Id |
The ID for the MDM session. |
State |
Gets the state of an MDM session. |
Methods
AttachAsync() |
Allows the caller to re-open an existing MDM session. |
Delete() |
Deletes the MDM session. |
StartAsync() |
Start an MDM session with a constant alerts. |
StartAsync(IIterable<MdmAlert>) |
Starts an MDM session with custom alerts. |