In This Article

DocumentReference Class

Provides a simple document reference implementation.

public class DocumentReference : DependencyObject, IDocumentReference
Inheritance:
object object
Implements:
IDocumentReference

Constructors

DocumentReference()

Initializes an instance of the DocumentReference class.

public DocumentReference()

DocumentReference(Uri)

Initializes an instance of the DocumentReference class.

public DocumentReference(Uri location)
Parameter Type Description
location Uri

A System.Uri indicating the location of the document.

Properties

Description

Gets or sets the optional description of the document.

public string Description { get; set; }

Property Value

string:

The optional description of the document.

Remarks

For a file, this can be a general file type description or a more display-oriented version of its location.

ImageSourceLarge

Gets or sets the optional large ImageSource for the document.

public ImageSource ImageSourceLarge { get; set; }

Property Value

ImageSource:

The optional large ImageSource for the document.

Remarks

This property can be used by UI that represents the document.

ImageSourceSmall

Gets or sets the optional small ImageSource for the document.

public ImageSource ImageSourceSmall { get; set; }

Property Value

ImageSource:

The optional small ImageSource for the document.

Remarks

This property can be used by UI that represents the document.

IsPinnedRecentDocument

Gets or sets whether the document is pinned on the recent document list.

public bool IsPinnedRecentDocument { get; set; }

Property Value

bool:

true if the document is pinned on the recent document list; otherwise, false.

LastOpenedDateTime

Gets or sets a DateTime indicating when the document was last opened.

public DateTime LastOpenedDateTime { get; set; }

Property Value

DateTime:

A DateTime indicating when the document was last opened.

Location

Gets or sets a System.Uri indicating the location of the document.

public Uri Location { get; set; }

Property Value

Uri:

A System.Uri indicating the location of the document.

Remarks

For a file, this is typically the full path to the file, including filename.

Name

Gets or sets the name of the document.

public string Name { get; set; }

Property Value

string:

The name of the document.

Remarks

For a file, this is typically the filename (including extension) but without path.

Tag

Gets or sets an arbitrary object value that can be used to store custom information about this document reference.

public object Tag { get; set; }

Property Value

object:

The intended value. This property has no default value.

Fields

DescriptionProperty

Identifies the Description dependency property. This field is read-only.

public static readonly DependencyProperty DescriptionProperty

ImageSourceLargeProperty

Identifies the ImageSourceLarge dependency property. This field is read-only.

public static readonly DependencyProperty ImageSourceLargeProperty

ImageSourceSmallProperty

Identifies the ImageSourceSmall dependency property. This field is read-only.

public static readonly DependencyProperty ImageSourceSmallProperty

IsPinnedRecentDocumentProperty

Identifies the IsPinnedRecentDocument dependency property. This field is read-only.

public static readonly DependencyProperty IsPinnedRecentDocumentProperty

LastOpenedDateTimeProperty

Identifies the LastOpenedDateTime dependency property. This field is read-only.

public static readonly DependencyProperty LastOpenedDateTimeProperty

LocationProperty

Identifies the Location dependency property. This field is read-only.

public static readonly DependencyProperty LocationProperty

NameProperty

Identifies the Name dependency property. This field is read-only.

public static readonly DependencyProperty NameProperty

TagProperty

Identifies the Tag dependency property. This field is read-only.

public static readonly DependencyProperty TagProperty