次の方法で共有


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