Compartir a través de


Método ConfigurationHelper.GetCredentials

Creates a new credentials object of the specified type using the registered cloud credentials providers and settings.

Espacio de nombres: Microsoft.WindowsAzure.Common.Internals
Ensamblado: Microsoft.WindowsAzure.Common (en Microsoft.WindowsAzure.Common.dll)

Uso

'Uso
Dim settings As IDictionary(Of String, Object)
Dim isRequired As Boolean
Dim returnValue As T

returnValue = ConfigurationHelper.GetCredentials(settings, isRequired)

Sintaxis

'Declaración
Public Shared Function GetCredentials(Of T As CloudCredentials) ( _
    settings As IDictionary(Of String, Object), _
    <OptionalAttribute> Optional isRequired As Boolean = True _
) As T
public static T GetCredentials<T> (
    IDictionary<string,Object> settings,
    [OptionalAttribute] bool isRequired
) where T : CloudCredentials
public:
generic<typename T> where T : CloudCredentials
static T GetCredentials (
    IDictionary<String^, Object^>^ settings, 
    [OptionalAttribute] bool isRequired
)

GenericParameters

  • T
    The type of cloud credentials.

Parámetros

  • settings
    The collection of configuration settings.
  • isRequired
    The indicator of whether to require the credentials to be found. The value is true if the credentials must be found; otherwise, false.

Valor devuelto

An object that represents the first provider that supports the provided settings.

Seguridad para subprocesos

Cualquier miembro estático público (compartido en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Plataformas

Plataformas de desarrollo

Windows Vista, Windows 7 y Windows Server 2008

Plataformas de destino

Vea también

Referencia

Clase ConfigurationHelper
Miembros ConfigurationHelper
Espacio de nombres Microsoft.WindowsAzure.Common.Internals