GUIDIsValid Method


Checks whether the supplied GUID value is valid.

Namespace: Autodesk.Revit.DB.ExtensibleStorage
Assembly: RevitAPI (in RevitAPI.dll) Version: 2015.0.0.0 (2015.0.0.0)
Since: 2012

Syntax

C#
public static bool GUIDIsValid(
	Guid guid
)
Visual Basic
Public Shared Function GUIDIsValid ( _
	guid As Guid _
) As Boolean
Visual C++
public:
static bool GUIDIsValid(
	Guid guid
)

Parameters

guid
Type: System Guid
The GUID to check

Return Value

True if the GUID is valid

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →