Project.ConfigurationManager 속성
이 Project에 대한 ConfigurationManager 개체를 가져옵니다.
네임스페이스: EnvDTE
어셈블리: EnvDTE(EnvDTE.dll)
구문
‘선언
ReadOnly Property ConfigurationManager As ConfigurationManager
ConfigurationManager ConfigurationManager { get; }
property ConfigurationManager^ ConfigurationManager {
ConfigurationManager^ get ();
}
abstract ConfigurationManager : ConfigurationManager with get
function get ConfigurationManager () : ConfigurationManager
속성 값
형식: EnvDTE.ConfigurationManager
ConfigurationManager 개체
설명
ConfigurationManager 프로젝트 또는 프로젝트 항목에 대 한 프로젝트 구성 개체를 나타냅니다. 프로젝트 구성 이름 및 플랫폼 이름의 각 프로젝트 구성 고유 하 게 식별 합니다.
예제
Sub ConfigurationManagerExample(ByVal dte As DTE2)
' Before running this sample, open a project.
Dim proj As Project = dte.Solution.Item(1)
Dim manager As ConfigurationManager = proj.ConfigurationManager
' Define a new Debug-based configuration for the project.
Dim configs As Configurations = _
manager.AddConfigurationRow("MyDebug", "Debug", False)
Dim config As EnvDTE.Configuration
Dim msg As String
' List all build configurations for the project.
For Each config In configs
msg &= config.ConfigurationName
Next
MsgBox(proj.Name & " defines the following build configurations:" _
& vbCrLf & vbCrLf & msg)
End Sub
public void ConfigurationManagerExample(DTE2 dte)
{
// Before running this sample, open a project.
Project proj = dte.Solution.Item(1);
ConfigurationManager manager = proj.ConfigurationManager;
// Define a new Debug-based configuration for the project.
Configurations configs =
manager.AddConfigurationRow("MyDebug", "Debug", false);
string msg = "";
// List all build configurations for the project.
foreach (EnvDTE.Configuration config in configs)
msg += config.ConfigurationName;
MessageBox.Show(proj.Name +
" defines the following build configurations:\n\n" + msg);
}
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.