MOSS のドキュメント ライブラリのイベント ハンドラー内で HTTPContext を取得しようとしていますが、取得できるのは HTTPContext.Current の null 値だけです。リストに対して同じことを行うと、HTTPContext が返されます。HTTPContext.Request メソッドにアクセスするためにドキュメント ライブラリで HTTPContext を取得する方法はありますか?
ご協力いただきありがとうございます
コードは次のとおりです。
public class TestContextListItemEventReceiver : SPItemEventReceiver
{
HttpContext current;
static object obj;
/// <summary>
/// Initializes a new instance of the Microsoft.SharePoint.SPItemEventReceiver class.
/// </summary>
public TestContextListItemEventReceiver()
{
current = HttpContext.Current;
}
public override void ItemAdding(SPItemEventProperties properties)
{
obj = current;
}
}