다음을 통해 공유


SPDatabase.SchemaVersionXml property

Gets information about the schema versions associated with this [c] derived class.

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

Syntax

'Declaration
Public ReadOnly Property SchemaVersionXml As String
    Get
'Usage
Dim instance As SPDatabase
Dim value As String

value = instance.SchemaVersionXml
public string SchemaVersionXml { get; }

Property value

Type: System.String
A string in XML format containing the information.

Remarks

When a caller gets the SchemaVersionXml property, it enumerates all of the schema version IDs associated with the SPDatabase derived class, which are defined by upgrade sequences presented in the farm where this database is located. SchemaVersionXml then tries to retrieve the versions associated with the list of schema version IDs from both the database, also known as the current version, and from the upgrade sequence, also known as the target version. Finally this property compiles the information into an XML format and returns the string to the caller.

Information from this property can be used to determine whether the database is up to date, or if it requires an upgrade. If it does require an upgrade, the information can be used to determine which sequence has the mismatch between the current version and the target version.

See also

Reference

SPDatabase class

SPDatabase members

Microsoft.SharePoint.Administration namespace