 | NetForumIdExtensionsToGuid Method |
Converts an instance of a NetForumId to a Guid. Null references will result in an exception.
Namespace: Ignition.FrameworkAssembly: CatalystFire.Ignition (in CatalystFire.Ignition.dll) Version: 12.0.28229
Syntaxpublic static Guid ToGuid(
this NetForumId netForumId
)
<ExtensionAttribute>
Public Shared Function ToGuid (
netForumId As NetForumId
) As Guid
public:
[ExtensionAttribute]
static Guid ToGuid(
NetForumId^ netForumId
)
[<ExtensionAttribute>]
static member ToGuid :
netForumId : NetForumId -> Guid Parameters
- netForumId NetForumId
- A non-null reference to a NetForumId, to convert to a Guid
Return Value
GuidA 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).
Exceptions| Exception | Condition |
|---|
| ArgumentNullException | netForumId is null.
|
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.
See Also