interface ICoreWebView2ExperimentalMipSensitivityLabel

Note

This reference is no longer being maintained. For the latest API reference, see WebView2 API Reference.

Note

This an experimental API that is shipped with our prerelease SDK. See WebView2 release notes.

interface ICoreWebView2ExperimentalMipSensitivityLabel
  : public IUnknown

Interface for Microsoft Information Protection (MIP) sensitivity labels.

Summary

Members Descriptions
get_LabelId The unique identifier for the Microsoft Information Protection label.
get_OrganizationId The unique identifier for the organization that owns the MIP label.

This interface provides specific information about MIP labels, including label identification and organizational context.

            Microsoft::WRL::ComPtr<ICoreWebView2ExperimentalMipSensitivityLabel> mipLabel;
            if (SUCCEEDED(sensitivityLabel.As(&mipLabel)))
            {
                wil::unique_cotaskmem_string labelId;
                wil::unique_cotaskmem_string organizationId;
                CHECK_FAILURE(mipLabel->get_LabelId(&labelId));
                CHECK_FAILURE(mipLabel->get_OrganizationId(&organizationId));

                // Store the label id and organization id as a pair. Can be used
                // to query Purview for the allowed rights on the document
                labelInfos.emplace_back(
                    std::wstring(labelId.get()), std::wstring(organizationId.get()));
            }

Applies to

Product Introduced
WebView2 Win32 N/A
WebView2 Win32 Prerelease 1.0.3590

Members

get_LabelId

The unique identifier for the Microsoft Information Protection label.

public HRESULT get_LabelId(LPWSTR * value)

This string contains a GUID that uniquely identifies the specific sensitivity label within the organization's MIP policy configuration. The GUID follows the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (with dashes, no extra braces). eg: 3fa85f64-5717-4562-b3fc-2c963f66afa6

The caller must free the returned string with CoTaskMemFree. See API Conventions.

get_OrganizationId

The unique identifier for the organization that owns the MIP label.

public HRESULT get_OrganizationId(LPWSTR * value)

This string contains a GUID that identifies the Azure Active Directory tenant or organization that configured and deployed the sensitivity label. The GUID follows the format: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx (with dashes, no extra braces). eg: 44567f64-8712-1789-ac3f-15aa3f66ab12

The caller must free the returned string with CoTaskMemFree. See API Conventions.