共用方式為


SPPersistedObject.WasCreated Property

Gets a Boolean value that indicates whether the object is initialized and can be found in the database.

Namespace:  Microsoft.SharePoint.Administration
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online

Syntax

'Declaration
Protected Friend ReadOnly Property WasCreated As Boolean
    Get
'Usage
Dim value As Boolean

value = Me.WasCreated
protected internal bool WasCreated { get; }

Property Value

Type: System.Boolean
true if the object was initialized and is in the database; otherwise false.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace