Microsoft.Azure.Commands.RecoveryServices.PSRecoveryServicesClient.CreateVaultExtendedInformation C# (CSharp) Method

CreateVaultExtendedInformation() private method

Method to create the extended info for the vault.
private CreateVaultExtendedInformation ( ) : Microsoft.Azure.Management.RecoveryServices.Models.ResourceExtendedInformation
return Microsoft.Azure.Management.RecoveryServices.Models.ResourceExtendedInformation
        private ResourceExtendedInformation CreateVaultExtendedInformation()
        {
            ResourceExtendedInformation extendedInformation =
                new ResourceExtendedInformation();
            extendedInformation.Properties = new ResourceExtendedInfoProperties();
            extendedInformation.Properties.IntegrityKey = Utilities.GenerateRandomKey(128);
            extendedInformation.Properties.Algorithm = CryptoAlgorithm.None.ToString();

            ResourceExtendedInformationArgs extendedInfoArgs = new ResourceExtendedInformationArgs();
            extendedInfoArgs.Properties = new ResourceExtendedInfoProperties();
            extendedInfoArgs.Properties.Algorithm = extendedInformation.Properties.Algorithm;
            extendedInfoArgs.Properties.IntegrityKey = extendedInformation.Properties.IntegrityKey;

            this.CreateExtendedInfo(extendedInfoArgs);

            return extendedInformation;
        }