Microsoft.Azure.Commands.RecoveryServices.Backup.Cmdlets.ServiceClientAdapterNS.ServiceClientAdapter.GetProtectedItem C# (CSharp) Method

GetProtectedItem() public method

Gets a protected item
public GetProtectedItem ( string containerName, string protectedItemName, Microsoft.Azure.Management.RecoveryServices.Backup.Models.GetProtectedItemQueryParam queryFilter ) : Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse
containerName string Name of the container which this item belongs to
protectedItemName string Name of the item
queryFilter Microsoft.Azure.Management.RecoveryServices.Backup.Models.GetProtectedItemQueryParam Query filter
return Microsoft.Azure.Management.RecoveryServices.Backup.Models.ProtectedItemResponse
        public ProtectedItemResponse GetProtectedItem(
                string containerName,
                string protectedItemName,
            GetProtectedItemQueryParam queryFilter)
        {
            string resourceName = BmsAdapter.GetResourceName();
            string resourceGroupName = BmsAdapter.GetResourceGroupName();

            return BmsAdapter.Client.ProtectedItems.GetAsync(
                                     resourceGroupName,
                                     resourceName,
                                     AzureFabricName,
                                     containerName,
                                     protectedItemName,
                                     queryFilter,
                                     BmsAdapter.GetCustomRequestHeaders(),
                                     BmsAdapter.CmdletCancellationToken).Result;
        }