Impersonator Class

Interactive Media Manager
This is a support class to force SharePoint to execute code under the credentials of the application pool.

Namespace:  Microsoft.Imm.Sdk.SharePoint
Assembly:  Microsoft.Imm.Sdk (in Microsoft.Imm.Sdk)
Version: 1.0.0.0 (1.0.0.0)

public sealed class Impersonator : IDisposable

The utilization of this class is necessary in NTLM authentication environments when a user's token cannot be passed from one system to another. This class is not necessary in a Kerberos enabled environment.

using (Impersonator i = Impersonator.ImpersonateAppPool()) { //Call to network resource such as web service or database }

System..::.Object
  Microsoft.Imm.Sdk.SharePoint..::.Impersonator
Show: