Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

SPUtility.ObjectToGuid method

Converts an object to a Guid structure.

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

public static Guid ObjectToGuid(
	Object o
)

Parameters

o
Type: System.Object

The object to convert.

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.
Show:
© 2015 Microsoft