Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.