ProjectItem.Extender 속성

이 개체에 대해 존재하는 요청된 Extender를 가져옵니다.

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

구문

‘선언
ReadOnly Property Extender ( _
    ExtenderName As String _
) As Object
    Get
Object this[
    string ExtenderName
] { get; }
property Object^ Extender[[InAttribute] String^ ExtenderName] {
    Object^ get ([InAttribute] String^ ExtenderName);
}
abstract Extender : Object
JScript에서는 인덱싱된 속성을 지원하지 않습니다.

매개 변수

  • ExtenderName
    형식: System.String
    필수적 요소로서,반환할 Extender 이름입니다.

속성 값

형식: System.Object
Extender 개체입니다.

설명

사용할 수 있는 Extender 개체가 없으면 이 속성은 nullNull 참조(Visual Basic의 경우 Nothing)을 반환합니다.

Extender를 가져오는 데 사용되는 CATID는 개체의 ExtenderCATID 속성에서 제공됩니다.

예제

Sub ExtenderExample()
   ' You should have built and installed the Solution Extender
   ' sample in the Visual Studio Automation Samples directory for 
   ' this to work correctly.
   Dim extender As Object
   extender = DTE.Solution.Extender("SolutionMisc")
   MsgBox(extender.Notes)
End Sub

.NET Framework 보안

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

참고 항목

참조

ProjectItem 인터페이스

EnvDTE 네임스페이스

기타 리소스

Automation Extenders 구현 및 사용