CodeDelegate.FullName Özellik

Tanım

Temsilcinin dosyasının tam yolunu ve adını alır.

public:
 property System::String ^ FullName { System::String ^ get(); };
public:
 property Platform::String ^ FullName { Platform::String ^ get(); };
[System.Runtime.InteropServices.DispId(3)]
public string FullName { [System.Runtime.InteropServices.DispId(3)] get; }
[<System.Runtime.InteropServices.DispId(3)>]
[<get: System.Runtime.InteropServices.DispId(3)>]
member this.FullName : string
Public ReadOnly Property FullName As String

Özellik Değeri

String

Temsilcinin dosyasının tam yolunu ve adını temsil eden bir dize.

Öznitelikler

Örnekler

public void Example(DTE2 dte)  
{  
   // Before running this example, open a code document from a  
   // project and place the insertion point inside a delegate declaration.  
   try  
   {  
      TextSelection objTextSel;  
      CodeDelegate objCodeDel;  
      CodeElement objCodeElem;  

      objTextSel = (TextSelection)dte.ActiveDocument.Selection;  
      objCodeDel = (CodeDelegate)objTextSel.ActivePoint.get_CodeElement(vsCMElement.vsCMElementDelegate);  

      // Display the fullname of the CodeDelegate object.  
      MessageBox.Show(objCodeDel.FullName);  

      // Prove that the parent object of a CodeClass is a CodeElement.  
      objCodeElem = (CodeElement)objCodeDel.Parent;  
   }  
   catch (Exception ex)  
   {  
      MessageBox.Show(ex.Message);  
   }  
}  

Açıklamalar

FullNameÖzelliği, FullName Visual Studio 'nun bazı sürümlerinde özelliği olarak bilinir.

Not

Sınıfların, yapıların, işlevlerin, özniteliklerin, temsilcilerin ve bu gibi kod modeli öğelerinin değerleri, belirli tür düzenlemeler yapıldıktan sonra belirleyici olmayan bir değer olabilir, yani değerlerinin her zaman aynı kalır. Daha fazla bilgi için bkz. kod modeli öğe değerleri, kod modeli kullanılarak kod bulma bölümünde değişebilir (Visual Basic).

Şunlara uygulanır