ExternalResourceLoadData
This class contains the input and output data resulting from invoking an IExternalResourceServer's LoadResource method.
After the call to LoadResource, the resulting ExternalResourceLoadData will be passed into IExternalResourceServer.HandleLoadResourceResults() so that appropriate UI can be displayed.
Server providers can inspect the ExternalResourceLoadData to get an ExternalResourceLoadContent object of the subclass appropriate to the external resource. The class also contains a copy of the ExternalResourceReference, and information about the context of the load operation.
System.Object
Autodesk.Revit.DB.ExternalResourceLoadData
public class ExternalResourceLoadData : IDisposable
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| Dispose() | None | Releases all resources used by the ExternalResourceLoadData | |
| Equals | None | Determines whether the specified object is equal to the current object. (Inherited from Object ) | Object |
| GetExternalResourceReference() | ExternalResourceReference | Returns the ExternalResourceReference that identifies which resource should be loaded. | |
| GetHashCode | None | Serves as the default hash function. (Inherited from Object ) | Object |
| GetLoadContent() | ExternalResourceLoadContent | Returns the ExternalResourceLoadContent resulting from this load operation. | |
| GetLoadContext() | ExternalResourceLoadContext | Returns an object containing information about the context of the load operation. | |
| GetLoadRequestId() | Guid | Returns the load operation GUID. | |
| GetType | None | Gets the Type of the current instance. (Inherited from Object ) | Object |
| ToString | None | Returns a string that represents the current object. (Inherited from Object ) | Object |
| Name | Return Type | Description | Inherited From |
|---|---|---|---|
| ErrorsReported | bool | Indicates whether the IExternalResourceUIServer has reported errors for this ExternalResourceLoadData. This value can be set by the IExternalResourceUIServer in HandleLoadResourceResults(). | |
| ExternalResourceType | ExternalResourceType | The ExternalResourceType for which Revit is requesting data from the server. | |
| IsValidObject | Boolean | Specifies whether the .NET object represents a valid Revit entity. | |
| LoadStatus | ExternalResourceLoadStatus | The success or failure status of the load attempt. |