次の方法で共有


SPUtility.ObjectToGuid method

Converts an object to a Guid structure.

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

Syntax

'Declaration
Public Shared Function ObjectToGuid ( _
    o As Object _
) As Guid
'Usage
Dim o As Object
Dim returnValue As Guid

returnValue = SPUtility.ObjectToGuid(o)
public static Guid ObjectToGuid(
    Object o
)

Parameters

Return value

Type: System.Guid
If the type of the object is GUID, string, or byte[], the method returns a valid Guid. Otherwise, it returns GUID.Empty.

See also

Reference

SPUtility class

SPUtility members

Microsoft.SharePoint.Utilities namespace