MdmAlert 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
모바일 디바이스 관리 서버로 전송된 데이터를 구성하는 기능을 제공합니다.
public ref class MdmAlert sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [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 MdmAlert final
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class MdmAlert final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[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 MdmAlert
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class MdmAlert
function MdmAlert()
Public NotInheritable Class MdmAlert
- 상속
- 특성
Windows 요구 사항
디바이스 패밀리 |
Windows 10 Creators Update (10.0.15063.0에서 도입되었습니다.)
|
API contract |
Windows.Foundation.UniversalApiContract (v4.0에서 도입되었습니다.)
|
예제
void MultipleMdmAlerts()
{
Log::Comment(WEX::Common::String().Format(L"Attempt to start syncing with two Alerts..."));
Log::Comment(WEX::Common::String().Format(L"Fill in all members of first alert."));
Windows::Management::MdmAlert myAlert;
// This format is mandated by the OMA-DM standards for alerts.
myAlert.Type(L"Reversed-Domain-Name:org.domain.samplealert");
myAlert.Format(Windows::Management::MdmAlertDataType::String);
myAlert.Data(L"alert-specific content.");
myAlert.Mark(Windows::Management::MdmAlertMark::Critical);
// Source and Target URIs are relative to the device, and typically in the MDM namespace.
// Here, they indicate that an app was installed at "InstallSample", and the resulting
// inventory location of the app is at "Results".
myAlert.Source(L"./Vendor/MSFT/AppManagement/InstallSample");
myAlert.Target(L"./Vendor/MSFT/AppManagement/Results");
Windows::Management::MdmAlert myAlertNext;
myAlertNext.Type(L"Reversed-Domain-Name:org.domain.nextalert");
std::vector<Windows::Management::MdmAlert> alertList;
alertList.push_back(myAlert);
alertList.push_back(myAlertNext);
}
void MultipleMdmAlerts()
{
Log::Comment(WEX::Common::String().Format(L"Attempt to start syncing with two Alerts..."));
Log::Comment(WEX::Common::String().Format(L"Fill in all members of first alert."));
Windows::Management::MdmAlert^ myAlert = ref new Windows::Management::MdmAlert();
// This format is mandated by the OMA-DM standards for alerts.
myAlert->Type = ref new Platform::String(L"Reversed-Domain-Name:org.domain.samplealert");
myAlert->Format = Windows::Management::MdmAlertDataType::String;
myAlert->Data = ref new Platform::String(L"alert-specific content.");
myAlert->Mark = Windows::Management::MdmAlertMark::Critical;
// Source and Target URIs are relative to the device and typically in the MDM namespace.
// Here, they indicate that an app was installed at "InstallSample" and the resulting
// inventory location of the app is at "Results".
myAlert->Source = ref new Platform::String(L"./Vendor/MSFT/AppManagement/InstallSample");
myAlert->Target = ref new Platform::String(L"./Vendor/MSFT/AppManagement/Results");
Windows::Management::MdmAlert^ myAlertNext = ref new Windows::Management::MdmAlert();
myAlertNext->Type = ref new Platform::String(L"Reversed-Domain-Name:org.domain.nextalert");
Windows::Foundation::Collections::IVector<MdmAlert^>^ alertList = ref new Platform::Collections::Vector<MdmAlert^>();
alertList->Append(myAlert);
alertList->Append(myAlertNext);
}
설명
MdmAlert의 두 가지 용도는 다음과 같습니다.
- MdmSession을 시작하기 전에: 경고를 만들고 경고 매개 변수를 사용자 지정합니다.
- MdmSession을 시작한 후: 경고에 대해 서버에서 다시 보낸 상태 포함하여 경고의 결과를 세션에 쿼리합니다.
참고: 일반 경고(1226)가 가장 일반적입니다.
생성자
MdmAlert() |
사용자 지정 데이터 필드가 있는 MDM 경고입니다. |
속성
Data |
서버로 전송된 사용자 지정 MDM 데이터입니다. |
Format |
MDM 경고의 데이터 형식입니다. |
Mark |
경고의 우선 순위 또는 중요도입니다. |
Source |
경고 원본에 대한 로컬 URI 경로입니다. |
Status |
경고에 대한 응답으로 서버에서 보낸 읽기 전용 상태 코드입니다. |
Target |
애플리케이션의 인벤토리 위치에 대한 로컬 URI 경로입니다. |
Type |
경고의 유형입니다. 경고 ID이기도 합니다. |