|
![]() |
Sets the number of values held within a distinct SchemaData object. Each index will be initialised to its default value.
Namespace: Autodesk.Navisworks.Api.Schema
Assembly: Autodesk.Navisworks.Api (in Autodesk.Navisworks.Api.dll)
Syntax
Visual Basic |
---|
Public Sub SetCount ( _ accessor As EditAccessor, _ count As Integer _ ) |
C# |
---|
public void SetCount( EditAccessor accessor, int count ) |
Visual C++ |
---|
public: void SetCount( EditAccessor^ accessor, int count ) |
Parameters
- accessor
- Type: Autodesk.Navisworks.Api.Schema..::..EditAccessor
Accessor provided by parent object e.g. from SchemaData, or a containing VectorField's IndexAccessor.
- count
- Type: System..::..Int32
Remarks
A call to SetCount(EditAccessor, Int32) is required before any data can be set into SchemaData objects via index accessors. Each call to SetCount(EditAccessor, Int32) is destructive, removing any existing values held in the vector.
Exceptions
Exception | Condition |
---|---|
System..::..InvalidOperationException | C++ exception 'LcUSchemaStorageNotCompiledException' thrown |
System..::..InvalidOperationException | C++ exception 'LcUSchemaInvalidAccessorException' thrown |
System..::..ObjectDisposedException | Object has been Disposed |
System..::..ArgumentNullException | Argument 'accessor' is null |
System..::..ArgumentException | Argument 'accessor' has been Disposed |