2027 Class
Changes 0
C

ExternalResourceLoadContext

Description:
This class contains data describing the context related to an external resource load operation.
Remarks:

Note that automatic loads can occur in the context of other operations such as opening a file. During automatic loads, it is therefore recommended that the server only display UI that is critical for the user to see (such as error message).

The loading operation type is Explicit when the user is specifically trying to reload the resource. During explicit loads, it may be desirable to provide more feedback to the user, such as specific feedback that the load operation succeeded.

Inheritance Hierarchy:
System.Object
  Autodesk.Revit.DB.ExternalResourceLoadContext
public class ExternalResourceLoadContext : IDisposable
Name Return Type Description Inherited From
M CallingDocumentHasModelPath() Boolean Indicates whether the document requesting the external resource has a defined ModelPath.
M Dispose() None Releases all resources used by the ExternalResourceLoadContext
M Equals None Determines whether the specified object is equal to the current object. (Inherited from Object ) Object
M GetCallingDocumentModelPath() ModelPath Returns a copy of the ModelPath of the document that is requesting the external resource.
M GetCurrentlyLoadedReference() ExternalResourceReference Returns a copy of the ExternalResourceReference currently in use by the containing element.
M GetHashCode None Serves as the default hash function. (Inherited from Object ) Object
M GetType None Gets the Type of the current instance. (Inherited from Object ) Object
M ToString None Returns a string that represents the current object. (Inherited from Object ) Object
Name Return Type Description Inherited From
P IsValidObject Boolean Specifies whether the .NET object represents a valid Revit entity.
P LoadOperationType LoadOperationType An enum value indicating whether the resource load was triggered by an automatic event (such as file open) or an explicit user action.