你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Utilities Class

Definition

Class to define Utility methods

public static class Utilities
type Utilities = class
Public Module Utilities
Inheritance
Utilities

Methods

A2AEncryptionDetails(String, String, String, String)

Creating DiskEncryptionInfo for A2A encrypted Vm.

Deserialize<T>(String)

Deserialize the xml as T

GenerateRandomKey(Int32)

Generate cryptographically random key of given bit size.

GetAllFurtherPages<T>(Func<String,Dictionary<String,List<String>>, CancellationToken,Task<AzureOperationResponse<IPage<T>>>>, String, Dictionary<String,List<String>>)
GetDefaultPath()

method to return the Downloads path for the current user.

GetMemberName<T>(Expression<Func<T>>)

Get the name of the member for memberExpression.

GetNextPages<T>(Func<String,CancellationToken,Task<AzureOperationResponse<CustomPage<T>>>>, String)
GetProviderNameSpaceFromArmId(String)

Returns provider namespace from ARM id.

GetValueFromArmId(String, String)

Get Value from ARM ID

GetVaultArmId(String)

Returns ARM Id of the vault from ARM ID of the contained resource.

IpageToList<T>(List<CustomPage<T>>)
IpageToList<T>(List<IPage<T>>)
IsValidArmId(String, String)

Checks whether the ARM Id is valid per the given format.

Serialize<T>(T)

Serialize the T as xml using DataContract Serializer

ToQueryString(Object)

Converts Query object to query string to pass on.

UnFormatArmId(String, String)

Returns tokens based on format provided. This works on ARM IDs only.

UpdateCurrentVaultContext(ASRVaultCreds)

Updates current Vault context.

ValidateCustomEmails(String[])

Validate the email addresses.

ValidateIpOrHostName(String)

Validate the ipaddress or host name.

WriteToFile<T>(T, String, String)

Method to write content to a file.

Applies to