Sets the name of the Schema.
Namespace: Autodesk.Revit.DB.ExtensibleStorageAssembly: RevitAPI (in RevitAPI.dll) Version: 21.0.0.0 (21.1.1.109)
Since: 2012
Syntax
C# |
---|
public SchemaBuilder SetSchemaName( string schemaName ) |
Visual Basic |
---|
Public Function SetSchemaName ( _ schemaName As String _ ) As SchemaBuilder |
Visual C++ |
---|
public: SchemaBuilder^ SetSchemaName( String^ schemaName ) |
Parameters
- schemaName
- Type: System..::..String
The name for the Schema.
Return Value
The SchemaBuilder object may be used to add more settings.
Remarks
The name is a user-friendly identifier of the Schema. GUIDs are used exclusively
for Schema identity, but the name is useful to identify the Schema during development
or in an error message.
This field is required.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentException | The parameter schemaName is not acceptable for naming Extensible Storage objects. |
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was NULL |
Autodesk.Revit.Exceptions..::..InvalidOperationException | The SchemaBuilder has already finished building the Schema. |