KeyBasedTreeEntriesLoadContent
This class is used by IExternalResourceServers to return KeyBasedTreeEntries data to Revit when their LoadResource method is invoked.
The class contains a KeyBasedTreeEntries object which should hold the KeyBasedTreeEntries data generated by the IExternalResourceServer.
An ExternalResourceServer can create the KeyBasedTreeEntries from an arbitrary data source by using AddEntry to add individual KeyBasedTreeEntries. Once all the desired entries have been added, BuildEntries can be called to construct the KeyBasedTreeEntries object from the individual entries that were added.
KeyBasedTreeEntriesLoadContent must have a built KeyBasedTreeEntries before its LoadStatus property can be set to ExternalResourceLoadStatus.Success.
System.Object
Autodesk.Revit.DB.ExternalResourceLoadContent
Autodesk.Revit.DB.KeyBasedTreeEntriesLoadContent
public class KeyBasedTreeEntriesLoadContent : ExternalResourceLoadContent
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| AddEntry(KeyBasedTreeEntry) | bool | Adds one KeyBasedTreeEntry to this KeyBasedTreeEntriesLoadContent, which is used to build a KeyBasedTreeEntries object by BuildEntries function. | |
| BuildEntries() | None | Builds a KeyBasedTreeEntries object. | |
| CanAddEntry(KeyBasedTreeEntry) | bool | Verifies if the KeyBasedTreeEntry could be added in this KeyBasedTreeEntriesLoadContent. | |
| GetEntries() | KeyBasedTreeEntries | Gets a copy of KeyBasedTreeEntries object owned by this KeyBasedTreeEntriesLoadContent object. | |
| GetLoadResults() | KeyBasedTreeEntriesLoadResults | Returns a copy of the KeyBasedTreeEntriesLoadResults owned by this KeyBasedTreeEntriesLoadContent object. | |
| IsEntriesBuilt(KeyBasedTreeEntriesLoadContent) | bool | Verifies that the KeyBasedTreeEntries object owned by a KeyBasedTreeEntriesLoadContent object is built. | |
| Reset() | None | Clears KeyBasedTreeEntriesLoadContent object, including KeyBasedTreeEntries and KeyBasedTreeEntriesLoadResults, owned by this KeyBasedTreeEntriesLoadContent object. | |
| Dispose() | None | Releases all resources used by the | ExternalResourceLoadContent |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. | ExternalResourceLoadContent |
| LoadStatus | ExternalResourceLoadStatus | A value to indicate the status of an external resource load operation. IExternalResourceServers should set this in the LoadResource() method. | ExternalResourceLoadContent |
| Version | string | The version of the external data that the server is providing in this object. | ExternalResourceLoadContent |