Kentico 8.2 API Reference
Kentico 8.2 API Reference
Namespaces
CMS.Base
CoreExtensions Class
CoreExtensions Methods
GetAPIString Method
GetList(ExtensionType) Method
GetListItem(ExtensionType) Method
GetStaticProperties(PropertyType) Method
GetString Method
StaticProperty(PropertyType) Method
ToBoolean Method
ToDateTime Method
ToDouble Method
ToGuid Method
ToInteger Method
ToString Method
CoreExtensions
ToGuid Method
Returns the Guid representation of an object or default value if not.
Namespace:
CMS.Base
Assembly:
CMS.Base (in CMS.Base.dll) Version: 8.2.23
Syntax
C#
Copy
public
static
Guid
ToGuid
(
this
Object
obj
,
Guid
defaultValue
)
Parameters
obj
Type:
System
Object
Object
defaultValue
Type:
System
Guid
Default value
Return Value
Type:
Guid
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Object
. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic)
or
Extension Methods (C# Programming Guide)
.
See Also
Reference
CoreExtensions Class
CMS.Base Namespace
Copyright (c) 2015 Kentico Software
Send comments on this topic to
support@kentico.com