RVTDocs.com

ExternalResourceReference.IsValidReference

Method
Description:
Checks whether the reference is in a valid format.
Remarks:
This function checks:
  • The server id corresponds to a valid server which implements IExternalResourceServer.
  • The server supports the given ExternalResourceType.
  • The reference information is well-formed.
This function does not check whether the resource exists on the server.
Syntax
public bool IsValidReference(
	ExternalResourceType resourceType
)
Parameters
Parameter Type Description
resourceType ExternalResourceType The type of resource which the ExternalResourceReference should correspond to.
Return Value
Type Description
Boolean True if this is a valid ExternalResourceReference. False otherwise.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null