RVTDocs.com

FieldBuilder.SetSubSchemaGUID

Method
Description:
Sets the GUID of the Schema of the Entities that are intended to be stored in this field.
Remarks:
Fields of type Entity - subentities - need to specify their Schema. The framework will prevent subentities with incorrect schemas from being stored in the entity. Additionally, the access level of the subschema will be checked against the currently executing add-in and access to restricted subentities will be prevented.
Syntax
Parameters
Parameter Type Description
guid Guid The GUID of the subschema.
Return Value
Type Description
FieldBuilder The FieldBuilder object may be used to add more details to the field.
Exceptions
Exception Condition
InvalidOperationException The SchemaBuilder has already finished building the Schema. -or- The field type does not utilize SubSchemas.