共用方式為


IExplorerNode.Context 屬性

取得 IExplorerNodeContext 物件,使用該物件您可以取得與目前節點相關聯之 SharePoint 網站的相關資訊。

命名空間:  Microsoft.VisualStudio.SharePoint.Explorer
組件:  Microsoft.VisualStudio.SharePoint (在 Microsoft.VisualStudio.SharePoint.dll 中)

語法

'宣告
ReadOnly Property Context As IExplorerNodeContext
    Get
IExplorerNodeContext Context { get; }

屬性值

型別:Microsoft.VisualStudio.SharePoint.Explorer.IExplorerNodeContext
IExplorerNodeContext 物件,使用該物件您可以取得與目前節點相關聯之 SharePoint 網站的相關資訊。

備註

您可以使用 IExplorerNodeContext 物件來執行呼叫至 SharePoint 伺服器物件模型的 SharePoint 命令、取得 SharePoint 網站的 URL,以及執行其他工作。

.NET Framework 安全性

請參閱

參考

IExplorerNode 介面

Microsoft.VisualStudio.SharePoint.Explorer 命名空間

其他資源

呼叫 SharePoint 物件模型