SPPersistedObject.ToString method
會傳回所有階 (父項、 上二層,依此類推) 和物件的名稱與類型。
Namespace: Microsoft.SharePoint.Administration
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
<SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel := True)> _
Public Overrides Function ToString As String
'用途
Dim instance As SPPersistedObject
Dim returnValue As String
returnValue = instance.ToString()
[SharePointPermissionAttribute(SecurityAction.Demand, ObjectModel = true)]
public override string ToString()
傳回值
Type: System.String
包含的類型和物件名稱的字串。