C# Class Microsoft.WindowsAzure.Commands.SqlDatabase.SqlDatabaseCmdletBase

The base class for all Microsoft Azure Sql Database Management Cmdlets
Inheritance: Microsoft.WindowsAzure.Commands.Utilities.Common.AzureSMCmdlet
ファイルを表示 Open project: Azure/azure-powershell Class Usage Examples

Protected Properties

Property Type Description
clientRequestId string

Public Methods

Method Description
GenerateClientTracingId ( ) : string

Generates a client side tracing Id of the format: [Guid]-[Time in UTC]

ValidateSubscription ( AzureSubscription subscription ) : void

Validates that the given subscription is valid.

Protected Methods

Method Description
GetCurrentSqlClient ( ) : Microsoft.WindowsAzure.Management.Sql.SqlManagementClient

Retrieve the SQL Management client for the currently selected subscription, adding the session and request id tracing headers for the current cmdlet invocation.

WriteErrorDetails ( Exception exception ) : void

Private Methods

Method Description
SqlDatabaseCmdletBase ( ) : System

Method Details

GenerateClientTracingId() public static method

Generates a client side tracing Id of the format: [Guid]-[Time in UTC]
public static GenerateClientTracingId ( ) : string
return string

GetCurrentSqlClient() protected method

Retrieve the SQL Management client for the currently selected subscription, adding the session and request id tracing headers for the current cmdlet invocation.
protected GetCurrentSqlClient ( ) : Microsoft.WindowsAzure.Management.Sql.SqlManagementClient
return Microsoft.WindowsAzure.Management.Sql.SqlManagementClient

ValidateSubscription() public static method

Validates that the given subscription is valid.
public static ValidateSubscription ( AzureSubscription subscription ) : void
subscription Microsoft.Azure.Commands.Common.Authentication.Models.AzureSubscription The to validate.
return void

WriteErrorDetails() protected method

protected WriteErrorDetails ( Exception exception ) : void
exception System.Exception
return void

Property Details

clientRequestId protected_oe property

Stores the per request session Id for all request made in this cmdlet call.
protected string clientRequestId
return string