Share via


SPPersistedObject.ToString Method

Returns the type and name of an object and of all its ancestors (parent, grandparent, and so on).

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

Syntax

'Declaration
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overrides Function ToString As String
'Usage
Dim instance As SPPersistedObject
Dim returnValue As String

returnValue = instance.ToString()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override string ToString()

Return Value

Type: System.String
A string that contains the type and name of the object.

See Also

Reference

SPPersistedObject Class

SPPersistedObject Members

Microsoft.SharePoint.Administration Namespace