SecurityCenterExtensions.GetInformationProtectionPolicyAsync Method
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.
Details of the information protection policy. <item> Mocking. To mock this method, please mock GetInformationProtectionPolicyAsync(ResourceIdentifier, InformationProtectionPolicyName, CancellationToken) instead. </item>
public static System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.InformationProtectionPolicyResource>> GetInformationProtectionPolicyAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicyName informationProtectionPolicyName, System.Threading.CancellationToken cancellationToken = default);
static member GetInformationProtectionPolicyAsync : Azure.ResourceManager.ArmClient * Azure.Core.ResourceIdentifier * Azure.ResourceManager.SecurityCenter.Models.InformationProtectionPolicyName * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<Azure.ResourceManager.SecurityCenter.InformationProtectionPolicyResource>>
<Extension()>
Public Function GetInformationProtectionPolicyAsync (client As ArmClient, scope As ResourceIdentifier, informationProtectionPolicyName As InformationProtectionPolicyName, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of InformationProtectionPolicyResource))
Parameters
- scope
- ResourceIdentifier
The scope of the resource collection to get.
- informationProtectionPolicyName
- InformationProtectionPolicyName
Name of the information protection policy.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
client is null.