Поделиться через


Document::Name property

The Name property sets or returns the name of the console file. The Name property contains the fully qualified path with the file name. This property is read/write. If the console file has never been saved, the file name is an empty string.

Syntax

Property Name As String

Property value

The name of the document. If the document has never been saved, the document's name is an empty string.

Examples

' Retrieve the document name.
Dim strDocName As String
strDocName = objDoc.Name
MsgBox (strDocName)
 
' Set the document name.
objDoc.Name = "d:\console44.msc"

Requirements

Minimum supported client
Windows Vista
Minimum supported server
Windows Server 2008
Header
MMCObj.h
IDL
MMCObj.idl
DLL
Mmc.exe
IID
IID_Document

See also

Document.Location

Document.SaveAs