Share via


SPWeb.GetProperty method

取得屬性的值與指定的索引鍵清單中的中繼資料的網站。

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'宣告
Public Function GetProperty ( _
    key As Object _
) As Object
'用途
Dim instance As SPWeb
Dim key As Object
Dim returnValue As Object

returnValue = instance.GetProperty(key)
public Object GetProperty(
    Object key
)

參數

傳回值

Type: System.Object
屬性的值。

備註

這個方法會擷取指定的屬性的值,從索引鍵/值組的AllProperties屬性。

請參閱

參照

SPWeb class

SPWeb members

Microsoft.SharePoint namespace