C# Class Microsoft.WindowsAzure.Commands.Storage.Common.NameUtil

Name utility
显示文件 Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
ConvertBlobNameToFileName ( string blobName, DateTimeOffset snapshotTime ) : string

convert blob name into valid file name

GetNonWildcardPrefix ( string pattern ) : string

Get the prefix that don't contain wildcard

IsValidBlobName ( string blobName ) : bool

Is valid blob name http://msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx

IsValidBlobPrefix ( string blobPrefix ) : bool

Is valid blob prefix http://msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx

IsValidContainerName ( string containerName ) : bool

Is valid container name http://msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx

IsValidContainerPrefix ( string containerPrefix ) : bool

Is valid container prefix or not

IsValidFileName ( string fileName ) : bool

Is valid file name in local machine

IsValidQueueName ( string queueName ) : bool

Is valid queue name http://msdn.microsoft.com/en-us/library/windowsazure/dd179349.aspx

IsValidQueuePrefix ( string queuePrefix ) : bool

Is valid queue prefix

IsValidStoredAccessPolicyName ( string policyName ) : bool
IsValidTableName ( string tableName ) : bool

Is valid table name http://msdn.microsoft.com/en-us/library/windowsazure/dd179338.aspx

IsValidTablePrefix ( string tablePrefix ) : bool

Is valid table prefix

ResolveBlobName ( string blobName ) : string
ValidateBlobName ( string name ) : void

Check whether the blob name is valid. If not throw an exception

ValidateContainerName ( string name ) : void

Check whether the container name is valid. If not throw an exception

Method Details

ConvertBlobNameToFileName() public static method

convert blob name into valid file name
public static ConvertBlobNameToFileName ( string blobName, DateTimeOffset snapshotTime ) : string
blobName string blob name
snapshotTime DateTimeOffset
return string

GetNonWildcardPrefix() public static method

Get the prefix that don't contain wildcard
public static GetNonWildcardPrefix ( string pattern ) : string
pattern string Wildcard pattern
return string

IsValidBlobName() public static method

Is valid blob name http://msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx
public static IsValidBlobName ( string blobName ) : bool
blobName string Blob name
return bool

IsValidBlobPrefix() public static method

Is valid blob prefix http://msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx
public static IsValidBlobPrefix ( string blobPrefix ) : bool
blobPrefix string
return bool

IsValidContainerName() public static method

Is valid container name http://msdn.microsoft.com/en-us/library/windowsazure/dd135715.aspx
public static IsValidContainerName ( string containerName ) : bool
containerName string Container name
return bool

IsValidContainerPrefix() public static method

Is valid container prefix or not
public static IsValidContainerPrefix ( string containerPrefix ) : bool
containerPrefix string Container prefix
return bool

IsValidFileName() public static method

Is valid file name in local machine
public static IsValidFileName ( string fileName ) : bool
fileName string FileName
return bool

IsValidQueueName() public static method

Is valid queue name http://msdn.microsoft.com/en-us/library/windowsazure/dd179349.aspx
public static IsValidQueueName ( string queueName ) : bool
queueName string Queue name
return bool

IsValidQueuePrefix() public static method

Is valid queue prefix
public static IsValidQueuePrefix ( string queuePrefix ) : bool
queuePrefix string Queue prefix
return bool

IsValidStoredAccessPolicyName() public static method

public static IsValidStoredAccessPolicyName ( string policyName ) : bool
policyName string
return bool

IsValidTableName() public static method

Is valid table name http://msdn.microsoft.com/en-us/library/windowsazure/dd179338.aspx
public static IsValidTableName ( string tableName ) : bool
tableName string Table name
return bool

IsValidTablePrefix() public static method

Is valid table prefix
public static IsValidTablePrefix ( string tablePrefix ) : bool
tablePrefix string Table prefix
return bool

ResolveBlobName() public static method

public static ResolveBlobName ( string blobName ) : string
blobName string
return string

ValidateBlobName() public static method

Check whether the blob name is valid. If not throw an exception
public static ValidateBlobName ( string name ) : void
name string Blob name
return void

ValidateContainerName() public static method

Check whether the container name is valid. If not throw an exception
public static ValidateContainerName ( string name ) : void
name string Container name
return void