Share via


Document.FullName 속성

개체 파일의 전체 경로와 이름을 가져옵니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

‘선언
ReadOnly Property FullName As String
    Get
string FullName { get; }
property String^ FullName {
    String^ get ();
}
abstract FullName : string
function get FullName () : String

속성 값

형식: System.String
개체 파일의 전체 경로와 이름을 나타내는 문자열입니다.

설명

FullName 속성은 일부 버전의 Visual Studio에서 FileName 속성으로 알려져 있습니다.

예제

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 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

Document 인터페이스

EnvDTE 네임스페이스