Solution3.ExtenderNames Property
Gets a list of available Extenders for the object.
Namespace: EnvDTE90
Assembly: EnvDTE90 (in EnvDTE90.dll)
Syntax
'Declaration
ReadOnly Property ExtenderNames As Object
Object ExtenderNames { get; }
property Object^ ExtenderNames {
Object^ get ();
}
abstract ExtenderNames : Object with get
function get ExtenderNames () : Object
Property Value
Type: System.Object
An object containing an automation-compliant array of strings.
Remarks
ExtenderNames returns the names of the currently applicable Extenders for this object by using the CATID as specified by its ExtenderCATID property.
Examples
For information on how to run this add-in code, see How to: Compile and Run the Automation Object Model Code 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
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);
}
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Other Resources
How to: Compile and Run the Automation Object Model Code Examples