WebThreadInformation.IsImpersonating Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the current thread-impersonation mode.
public:
property bool IsImpersonating { bool get(); };
public bool IsImpersonating { get; }
member this.IsImpersonating : bool
Public ReadOnly Property IsImpersonating As Boolean
Property Value
true
if the thread is executing in impersonation mode; otherwise, false
.
Examples
The following code example shows how to get the thread-impersonation mode.
// Get the impersonation mode.
public string GetThreadImpersonation()
{
return (string.Format(
"Is impersonating: {0}",
ThreadInformation.IsImpersonating.ToString()));
}
' Get the impersonation mode.
Public Function GetThreadImpersonation() As String
Return String.Format( _
"Is impersonating: {0}", _
ThreadInformation.IsImpersonating.ToString())
End Function 'GetThreadImpersonation
Applies to
Tehke meiega GitHubis koostööd
Selle sisu allika leiate GitHubist, kus saate ka probleeme luua ja läbi vaadata ning päringuid teha. Lisateavet leiate meie kaasautorite juhendist.