SPContentTypeId.Empty property
取得空的內容類型識別碼 (ID)。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Shared ReadOnly Property Empty As SPContentTypeId
Get
'用途
Dim value As SPContentTypeId
value = SPContentTypeId.Empty
public static SPContentTypeId Empty { get; }
Property value
Type: Microsoft.SharePoint.SPContentTypeId
功能相當於String.Empty值。它不是,但是空字串。
備註
您可以使用此靜態屬性中的工作分派,初始化SPContentTypeId變數。下列程式碼示範技巧。
Dim id As SPContentTypeId = SPContentTypeId.Empty
SPContentTypeId id = SPContentTypeId.Empty;
![]() |
---|
SPContentTypeId不是 null 的型別。因此,您不能為a null reference (Nothing in Visual Basic)初始化的執行個體。 |