ConfigurationManager.Item 메서드

ConfigurationManager 컬렉션의 Configuration 개체를 반환합니다.

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

구문

‘선언
Function Item ( _
    index As Object, _
    Platform As String _
) As Configuration
Configuration Item(
    Object index,
    string Platform
)
Configuration^ Item(
    [InAttribute] Object^ index, 
    String^ Platform
)
abstract Item : 
        index:Object * 
        Platform:string -> Configuration
function Item(
    index : Object, 
    Platform : String
) : Configuration

매개 변수

  • index
    형식: Object

    필수입니다. 구성의 절대 인덱스, GUID 문자열 또는 이름입니다.

  • Platform
    형식: String

    선택 사항 플랫폼 이름입니다.

반환 값

형식: EnvDTE.Configuration
Configuration 개체

설명

Item은 Index에 있는 구성을 반환합니다. 이 개체는 행 순서가 우선하며 프로젝트/프로젝트 항목 구성 이름이 행에 표시되고 플랫폼 이름이 열에 표시됩니다.

index가 Long 데이터 형식이면 매트릭스의 행 중심 인덱스이며 Platform 인수가 무시되고 index가 String 데이터 형식이면 프로젝트/프로젝트 항목 구성 이름이며 Platform을 플랫폼 이름으로 지정해야 합니다. 플랫폼을 지원하지 않는 프로젝트의 경우 이 인수는 빈 문자열이 될 수도 있습니다.

예제

Sub ItemExample()
   ' Before running, load a project.
   ' Set references to all necessary objects.
   Dim CM As ConfigurationManager = DTE.Solution.Projects.Item(1).ConfigurationManager
   ' List the configuration name used for the current project.
   MsgBox(CM.Item(2).ConfigurationName)
End Sub

.NET Framework 보안

참고 항목

참조

ConfigurationManager 인터페이스

EnvDTE 네임스페이스