ExternalFileReference.IsValidExternalFileReference
Method
Description:
Checks an ExternalFileReference to see if it is properly created.
Checks an ExternalFileReference to see if it is properly created.
Remarks:
The following restrictions exist:
The following restrictions exist:
- PathType.Server is only valid for ExternalFileReferences of type ExternalFileReferenceType.RevitLink
- PathType.Content is only valid for ExternalFileReferences of type ExternalFileReferenceType.KeynoteTable, ExternalFileReferenceType.AssemblyCodeTable or ExternalFileReferenceType.Decal
- Keynote tables, assembly code tables and Decals (ExternalFileReferenceType.KeynoteTable, ExternalFileReferenceType.AssemblyCodeTable and ExternalFileReferenceType.Decal) may only be LinkedFileStatus.Loaded or LinkedFileStatus.NotFound.
Parameters
Parameter | Type | Description |
---|---|---|
data | ExternalFileReference | The ExternalFileReference to be checked |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |