NetForumIdExtensionsToGuid Method

Converts an instance of a NetForumId to a Guid. Null references will result in an exception.

Definition

Namespace: Ignition.Framework
Assembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.3454
C#
public static Guid ToGuid(
	this NetForumId netForumId
)

Parameters

netForumId  NetForumId
A non-null reference to a NetForumId, to convert to a Guid

Return Value

Guid
A Guid representing the provided NetForumId

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type NetForumId. 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).

Remarks

If there is any possibility that netForumId will be null, do not use this method. Instead, either manually handle null values before calling this method, or cast the NetForumId to a nullable Guid instead.

Exceptions

ArgumentNullExceptionnetForumId is null.

See Also