Share via


WebThreadInformation.ThreadAccountName Propiedad

Definición

Obtiene el nombre de cuenta del subproceso.

public:
 property System::String ^ ThreadAccountName { System::String ^ get(); };
public string ThreadAccountName { get; }
member this.ThreadAccountName : string
Public ReadOnly Property ThreadAccountName As String

Valor de propiedad

Nombre de cuenta del subproceso.

Ejemplos

En el ejemplo de código siguiente se muestra cómo obtener el nombre de la cuenta de subproceso.

// Get the account name.
public string GetThreadAccountName()
{
    return (string.Format(
        "Request user host address: {0}",
        ThreadInformation.ThreadAccountName));
}
' Get the account name.
Public Function GetThreadAccountName() As String
     Return String.Format( _
     "Request user host address: {0}", _
     ThreadInformation.ThreadAccountName)
End Function 'GetThreadAccountName

Comentarios

La cuenta devuelta por esta propiedad podría ser arbitraria si el subproceso se ejecuta en modo de suplantación.

Se aplica a