PackageUtility.ShowMessageBox 메서드 (IServiceProvider, String, String, OLEMSGBUTTON, OLEMSGDEFBUTTON, OLEMSGICON)
셸 안에 메시지 상자를 표시하는 도우미 메서드입니다.
네임스페이스: Microsoft.VisualStudio.Modeling.Shell
어셈블리: Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0(Microsoft.VisualStudio.Modeling.Sdk.Shell.12.0.dll)
구문
‘선언
Public Shared Function ShowMessageBox ( _
serviceProvider As IServiceProvider, _
messageText As String, _
f1Keyword As String, _
messageButtons As OLEMSGBUTTON, _
defaultButton As OLEMSGDEFBUTTON, _
messageIcon As OLEMSGICON _
) As DialogResult
public static DialogResult ShowMessageBox(
IServiceProvider serviceProvider,
string messageText,
string f1Keyword,
OLEMSGBUTTON messageButtons,
OLEMSGDEFBUTTON defaultButton,
OLEMSGICON messageIcon
)
매개 변수
- serviceProvider
형식: System.IServiceProvider
- messageText
형식: System.String
표시할 텍스트입니다.
- f1Keyword
형식: System.String
F1 키워드
- messageButtons
형식: Microsoft.VisualStudio.Shell.Interop.OLEMSGBUTTON
대화 상자에 나타날 단추입니다.
- defaultButton
형식: Microsoft.VisualStudio.Shell.Interop.OLEMSGDEFBUTTON
기본 단추입니다(사용자가 Return 키를 누를 때 호출됨).
- messageIcon
형식: Microsoft.VisualStudio.Shell.Interop.OLEMSGICON
표시할 아이콘(경고, 오류, 정보 등)
반환 값
형식: System.Windows.Forms.DialogResult
.NET Framework 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.