다음을 통해 공유


Solution2.ExtenderNames Property

Definition

Gets a list of available Extenders for the object.

public:
 property System::Object ^ ExtenderNames { System::Object ^ get(); };
public:
 property Platform::Object ^ ExtenderNames { Platform::Object ^ get(); };
[System.Runtime.InteropServices.DispId(34)]
public object ExtenderNames { [System.Runtime.InteropServices.DispId(34)] [System.Runtime.InteropServices.TypeLibFunc(1024)] get; }
[System.Runtime.InteropServices.DispId(34)]
public object ExtenderNames { [System.Runtime.InteropServices.DispId(34)] get; }
[<System.Runtime.InteropServices.DispId(34)>]
[<get: System.Runtime.InteropServices.DispId(34)>]
[<get: System.Runtime.InteropServices.TypeLibFunc(1024)>]
member this.ExtenderNames : obj
[<System.Runtime.InteropServices.DispId(34)>]
[<get: System.Runtime.InteropServices.DispId(34)>]
member this.ExtenderNames : obj
Public ReadOnly Property ExtenderNames As Object

Property Value

An object containing an automation-compliant array of strings.

Implements

Attributes

Examples

Sub ExtenderNamesExample(ByVal dte As DTE2)  
    Dim names() As String = CType(dte.Solution.ExtenderNames, String())  
    Dim exts, name As String  
    For Each name In names  
        exts &= name & vbCrLf  
    Next  

    MsgBox(dte.Solution.FullName & " has the following extenders:" & _  
        vbCrLf & vbCrLf & exts)  

End Sub  
//you will need to add this reference to your project as well  
using System.Windows.Forms;  
public void ExtenderNamesExample(DTE2 dte)  
{  
    string[] names = (string[])dte.Solution.ExtenderNames;  
    string exts = "";  
    foreach (string name in names)  
    {  
        exts += name + Environment.NewLine;  
    }  

    MessageBox.Show(dte.Solution.FullName +   
        " has the following extenders:" + Environment.NewLine +   
        Environment.NewLine + exts);  
}  

Remarks

ExtenderNames returns the names of the currently applicable Extenders for this object by using the CATID as specified by its ExtenderCATID property.

Applies to