DocumentBase.FullName Property
Gets the name of the document, including the drive or Web path.
Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)
Syntax
'Declaration
Public ReadOnly Property FullName As String
Get
public string FullName { get; }
Property Value
Type: System.String
The name of the document, including the drive or Web path.
Remarks
Using this property is equivalent to using the Path, PathSeparator, and Name properties in sequence.
Examples
The following code example displays a message that shows the path and name of the document. To use this example, run it from the ThisDocument class in a document-level project.
Private Sub DocumentFullName()
MessageBox.Show(Me.FullName.ToString())
End Sub
private void DocumentFullName()
{
MessageBox.Show(this.FullName.ToString());
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.