DocumentSet.AddResource MethodDocumentSet.AddResource MethodDocumentSet::AddResource Method
Adds the resource represented by the specified StreamStreamStream to the set of available resources,
and associates it with its document URI.
Syntax
Public Function AddResource( _ uri As AnyUri, _ resource As ResolvedResource _ ) As Boolean
public bool AddResource( AnyUri uri, ResolvedResource resource )
public: bool AddResource( AnyUri^ uri, ResolvedResource^ resource )
Parameters
- uri
Type: XmlPrime.AnyUriXmlPrime.AnyUriXmlPrime::AnyUri^
The URI of the resource to add to the DocumentSetDocumentSetDocumentSet.
- resource
Type: XmlPrime.ResolvedResourceXmlPrime.ResolvedResourceXmlPrime::ResolvedResource^
The resource to add to the DocumentSetDocumentSetDocumentSet.
Return Value
Type: System.BooleanSystem.BooleanSystem::Boolean
true
True
true
if the document was added to the DocumentSetDocumentSetDocumentSet;
false
False
false
otherwise.
Exceptions
Exception | Condition |
ArgumentNullExceptionArgumentNullExceptionArgumentNullException |
uri or resource is null
a null reference (Nothing in Visual Basic)
nullptr .
|