次の方法で共有


WebThreadInformation.ThreadAccountName プロパティ

定義

スレッド アカウント名を取得します。

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

プロパティ値

スレッド アカウント名。

次のコード例は、スレッド アカウント名を取得する方法を示しています。

// 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

注釈

スレッドが偽装モードで実行されている場合、このプロパティによって返されるアカウントは任意である可能性があります。

適用対象