complexType "refType"
Namespace:
Content:
complex, 3 attributes, 2 elements, elem. wildcard
Defined:
globally in myDocuments.xsd; see XML source
Includes:
definitions of 3 attributes, 2 elements, elem. wildcard
Used:
XML Representation Summary
<...
   
 = 
xsd:dateTime
 = 
xsd:string
 = 
xsd:string
   
>
   
Content: 
</...>
Content Model Elements (2):
delete (in ref), show (in ref)
All Direct / Indirect Based Elements (1):
ref (in document)
Known Usage Locations
Annotation
This element defines a reference to a document. Documents are all ref-counted objects. These references can be deleted through the standard delete method. When the final reference is deleted, the file and all associated metadata are deleted. References always refer to a specific folder. This means that documents conceptually "exist" within one or more Folders. The traditional "file name" for the document is unique per reference. References can also specify a time to live. This allows other services to post data to a user's store temporarily. For example, they can use the user's store to create temp files. If all references have expired then the document is automatically deleted. However, if any reference exists that has not expired, then all references, including ones that have expired, remain valid. When adding a reference to an existing document, the reference must refer to an existing folder ID, and the name given must be unique within that folder. Updates to references require that any update leave the name unique within the referencing folder. If the final reference to a document is deleted, then the deletion of the reference results in the deletion of the document and all associated streams.
XML Source (see within schema source)
<xsd:complexType name="refType">
<xsd:annotation>
<xsd:documentation>
This element defines a reference to a document.

Documents are all ref-counted objects. These references can be deleted through the standard delete method.
When the final reference is deleted, the file and all associated metadata are deleted.

References always refer to a specific folder. This means that documents conceptually "exist" within one or
more Folders. The traditional "file name" for the document is unique per reference.

References can also specify a time to live. This allows other services to post data to a user's store temporarily. For example, they can use the user's store to create temp files. If all references have
expired then the document is automatically deleted. However, if any reference exists that has not expired,
then all references, including ones that have expired, remain valid.

When adding a reference to an existing document, the reference must refer to an existing folder ID, and the
name given must be unique within that folder.

Updates to references require that any update leave the name unique within the referencing folder.

If the final reference to a document is deleted, then the deletion of the reference results in the deletion of
the document and all associated streams.
</xsd:documentation>
</xsd:annotation>
<xsd:sequence>
<xsd:element maxOccurs="1" minOccurs="0" name="delete" type="xsd:int">
<xsd:annotation>
<xsd:documentation>
If this element exists, it specifies an HTTP GET operation to be performed to delete the reference cleanly.
This would be placed here by another service that stored data in the .NET Documents service.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element maxOccurs="1" minOccurs="0" name="show" type="hs:string">
<xsd:annotation>
<xsd:documentation>
If this element exists, it specifies a URL that can be used to render HTML to display the referenced object.
For example, if the document is a photograph in a photo album, this URL would show the document
in the appropriate context.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="skip"/>
</xsd:sequence>
<xsd:attribute maxOccurs="1" minOccurs="0" name="folderId" type="hs:string">
<xsd:annotation>
<xsd:documentation>
The ID of the folder object that holds this reference to this object.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute maxOccurs="1" minOccurs="1" name="name" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
The name of this document within this reference folder.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute maxOccurs="1" minOccurs="0" name="expires" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation>
If this attribute exists, then it specifies the number of minutes this reference is valid relative to the last
access time for the document.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
Attribute Detail (all declarations; 3/3)
expires
Type:
xsd:dateTime, predefined
Use:
optional
Defined:
locally within (this) refType complexType
If this attribute exists, then it specifies the number of minutes this reference is valid relative to the last access time for the document.
XML Source (see within schema source)
<xsd:attribute maxOccurs="1" minOccurs="0" name="expires" type="xsd:dateTime">
<xsd:annotation>
<xsd:documentation>
If this attribute exists, then it specifies the number of minutes this reference is valid relative to the last
access time for the document.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

folderId
Type:
Use:
optional
Defined:
locally within (this) refType complexType
The ID of the folder object that holds this reference to this object.
XML Source (see within schema source)
<xsd:attribute maxOccurs="1" minOccurs="0" name="folderId" type="hs:string">
<xsd:annotation>
<xsd:documentation>
The ID of the folder object that holds this reference to this object.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>

name
Type:
xsd:string, predefined
Use:
optional
Defined:
locally within (this) refType complexType
The name of this document within this reference folder.
XML Source (see within schema source)
<xsd:attribute maxOccurs="1" minOccurs="1" name="name" type="xsd:string">
<xsd:annotation>
<xsd:documentation>
The name of this document within this reference folder.
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>
Content Element Detail (all declarations; 3/3)
delete
Type:
xsd:int, predefined, simple content
Defined:
locally within (this) refType complexType
If this element exists, it specifies an HTTP GET operation to be performed to delete the reference cleanly. This would be placed here by another service that stored data in the .NET Documents service.
XML Source (see within schema source)
<xsd:element maxOccurs="1" minOccurs="0" name="delete" type="xsd:int">
<xsd:annotation>
<xsd:documentation>
If this element exists, it specifies an HTTP GET operation to be performed to delete the reference cleanly.
This would be placed here by another service that stored data in the .NET Documents service.
</xsd:documentation>
</xsd:annotation>
</xsd:element>

show
Type:
hs:string, simple content
Defined:
locally within (this) refType complexType
If this element exists, it specifies a URL that can be used to render HTML to display the referenced object. For example, if the document is a photograph in a photo album, this URL would show the document in the appropriate context.
XML Source (see within schema source)
<xsd:element maxOccurs="1" minOccurs="0" name="show" type="hs:string">
<xsd:annotation>
<xsd:documentation>
If this element exists, it specifies a URL that can be used to render HTML to display the referenced object.
For example, if the document is a photograph in a photo album, this URL would show the document
in the appropriate context.
</xsd:documentation>
</xsd:annotation>
</xsd:element>

{any element with non-schema namespace}
Defined:
within (this) refType complexType
XML Source (see within schema source)
<xsd:any maxOccurs="unbounded" minOccurs="0" namespace="##other" processContents="skip"/>