SPFeatureDefinition.Id property
取得或設定與物件相關聯Guid 。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public ReadOnly Property Id As Guid
Get
'用途
Dim instance As SPFeatureDefinition
Dim value As Guid
value = instance.Id
public Guid Id { get; }
Property value
Type: System.Guid
會傳回識別SPFeature物件Guid物件。
Exceptions
Exception | Condition |
---|---|
ArgumentException | 不允許 null Guid 。 |
備註
可啟用或停用指定範圍的功能。
請參閱
參照
Microsoft.SharePoint.Administration namespace
其他資源
How to: 建立簡單功能
使用功能