Compartilhar via


Método ConfigurationHelper.GetCredentials

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

Namespace: Microsoft.WindowsAzure.Common.Internals
Assembly: Microsoft.WindowsAzure.Common (em 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)

Sintaxe

'Declaração
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 de retorno

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

Segurança de thread

Qualquer membro estático público (compartilhado no Visual Basic) desse tipo é thread-safe. Não há garantia de que qualquer membro de instância seja seguro para threads.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows 7 e Windows Server 2008

Plataformas de destino

Consulte também

Referência

Classe ConfigurationHelper
Membros ConfigurationHelper
Namespace Microsoft.WindowsAzure.Common.Internals