SPUtility.ObjectToGuid method
SharePoint 2013
Converts an object to a Guid structure.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Parameters
- o
- Type: System.Object
The object to convert.
Return value
Type: System.GuidIf the type of the object is GUID, string, or byte[], the method returns a valid Guid. Otherwise, it returns GUID.Empty.