LinkLoadResult Class

This class stores the results of trying to load a single linked model.
Inheritance Hierarchy
SystemObject
  Autodesk.Revit.DBLinkLoadResult

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class LinkLoadResult : IDisposable

The LinkLoadResult type exposes the following members.

Constructors
 NameDescription
Public methodLinkLoadResult Constructs a new uninitialized LinkLoadResult object.
Public methodLinkLoadResult(LinkLoadResult) Constructs a new copy of the input LinkLoadResult object.
Top
Properties
 NameDescription
Public propertyElementId The id of the created or loaded linked model.
Public propertyIsCircularLink True if these results are part of a link cycle.
Public propertyIsNested True if these results represent a nested link; false otherwise.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyLoadResult Holds the results of creating or loading a link. Results can be LinkLoadResultType.LinkLoaded for success, or a variety of errors. See LinkLoadResultType for the full list.
Top
Methods
 NameDescription
Public methodDisposeReleases all resources used by the LinkLoadResult
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetCentralModelName Gets the central model's name. If the link is not workshared, this returns an empty FilePath. If the link is itself a central model, this returns the link's name.
Public methodGetExternalResourceReference Gets a copy of the ExternalResourceReference corresponding to the link.
Public methodGetExternalResourceReferencesFromFailedLoads Searches this and all nested LinkLoadResults, and returns a list of ExternalResourceReferences for the links that failed to load.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetLinkLoadResult Searches this LinkLoadResult and all nested LinkLoadResults for the load operation results of a specified ExternalResourceReference.
Public methodGetModelName Gets the name of the model.
Public methodGetNestedLinkLoadResults Gets the results for this link's nested links.
Public methodGetParentModelName Returns the name of the parent of the linked model, or an empty FilePath if the link is a top-level link.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberIsCodeSuccess Check if load result code signifies success.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also