Document.FullName Özellik
Nesnenin dosyasının adını ve tam yolunu alır.
Ad alanı: EnvDTE
Derleme: EnvDTE (EnvDTE.dll içinde)
Sözdizimi
'Bildirim
ReadOnly Property FullName As String
string FullName { get; }
property String^ FullName {
String^ get ();
}
abstract FullName : string with get
function get FullName () : String
Özellik Değeri
Tür: String
Nesnenin dosyasının adını ve tam yolunu gösteren bir dizedir.
Notlar
FullName Özelliği olarak bilinen FileName özelliği bazı sürümlerinde, Visual Studio.
Örnekler
Sub FullNameExample(ByVal dte As DTE2)
dte.ItemOperations.NewFile()
Dim doc As Document = dte.ActiveDocument
' Display the new document's temporary location.
MsgBox(doc.ActiveWindow.Caption & " is stored at " & doc.FullName)
End Sub
public void FullNameExample(DTE2 dte)
{
dte.ItemOperations.NewFile(@"General\Text File", "",
Constants.vsViewKindPrimary);
Document doc = dte.ActiveDocument;
// Display the new document's temporary location.
MessageBox.Show(doc.ActiveWindow.Caption + " is stored at " +
doc.FullName);
}
.NET Framework Güvenliği
- Anında arayanlar için tam güven. Bu üye kısmen güvenilen kodla kullanılamaz. Daha fazla bilgi için bkz. Kısmen Güvenilen Koddan Kitaplıkları Kullanma.