共用方式為


IExplorerNodeContext.CreatePropertySourceObject 方法

建立具有特殊型別描述元邏輯的物件,來公開指定的屬性值字典。

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

語法

'宣告
Function CreatePropertySourceObject ( _
    properties As IDictionary(Of String, String) _
) As Object
Object CreatePropertySourceObject(
    IDictionary<string, string> properties
)

參數

傳回值

型別:System.Object
含有附加之指定屬性的物件。

備註

您可以使用這個方法在 [伺服器總管] 的 [SharePoint 連接] 中將一組唯讀資料顯示為節點的屬性。 NodePropertiesRequested 事件的事件處理常式中,呼叫這個方法即可以建立包含一組 SharePoint 網站唯讀屬性的物件,並將此物件指派至事件引數的 PropertySources 屬性。 如需詳細資訊,請參閱 在伺服器總管中擴充 SharePoint 連線節點逐步解說:擴充伺服器總管以顯示 Web 組件

.NET Framework 安全性

請參閱

參考

IExplorerNodeContext 介面

Microsoft.VisualStudio.SharePoint.Explorer 命名空間