RegistrationErrorInfo.ErrorString プロパティ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文ErrorCode の説明。
使用例RegistrationErrorInfo オブジェクトからエラー文字列を取得する方法を次のコード例に示します。
' Check whether the ErrorInfo property of the RegistrationException object is null. ' If there is no extended error information about ' methods related to multiple COM+ objects ErrorInfo will be null. If Not (e.ErrorInfo Is Nothing) Then ' Gets an array of RegistrationErrorInfo objects describing registration errors Dim registrationErrorInfos As RegistrationErrorInfo() = e.ErrorInfo ' Iterate through the array of RegistrationErrorInfo objects and disply the ' ErrorString for each object. Dim registrationErrorInfo As RegistrationErrorInfo For Each registrationErrorInfo In registrationErrorInfos MsgBox(registrationErrorInfo.ErrorString) Next registrationErrorInfo End If
// Check whether the ErrorInfo property of the RegistrationException object is null. // If there is no extended error information about // methods related to multiple COM+ objects ErrorInfo will be null. if(e.ErrorInfo != null) { // Gets an array of RegistrationErrorInfo objects describing registration errors RegistrationErrorInfo[] registrationErrorInfos = e.ErrorInfo; // Iterate through the array of RegistrationErrorInfo objects and disply the // ErrorString for each object. foreach (RegistrationErrorInfo registrationErrorInfo in registrationErrorInfos) { Console.WriteLine(registrationErrorInfo.ErrorString); } }
// Check whether the ErrorInfo property of the RegistrationException object is null. // If there is no extended error information about // methods related to multiple COM+ objects ErrorInfo will be null. if ( e->ErrorInfo != nullptr ) { // Gets an array of RegistrationErrorInfo objects describing registration errors array<RegistrationErrorInfo^>^ registrationErrorInfos = e->ErrorInfo; // Iterate through the array of RegistrationErrorInfo objects and disply the // ErrorString for each object. System::Collections::IEnumerator^ myEnum = registrationErrorInfos->GetEnumerator(); while ( myEnum->MoveNext() ) { RegistrationErrorInfo^ registrationErrorInfo = (RegistrationErrorInfo^)( myEnum->Current ); Console::WriteLine( registrationErrorInfo->ErrorString ); } }
// Check whether the ErrorInfo property of the RegistrationException // object is null. If there is no extended error information about // methods related to multiple COM+ objects ErrorInfo will be null. if (e.get_ErrorInfo() != null) { // Gets an array of RegistrationErrorInfo objects describing // registration errors RegistrationErrorInfo registrationErrorInfos[] = e.get_ErrorInfo(); // Iterate through the array of RegistrationErrorInfo // objects and disply the ErrorString for each object. for (int iCtr = 0; iCtr < registrationErrorInfos.length; iCtr++) { RegistrationErrorInfo registrationErrorInfo = registrationErrorInfos[iCtr]; Console.WriteLine(registrationErrorInfo.get_ErrorString()); } }
.NET Framework のセキュリティ
プラットフォームWindows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からRegistrationErrorInfo.ErrorString プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からRegistrationErrorInfo.ErrorString プロパティ
を検索
- RegistrationErrorInfo.ErrorString プロパティのページへのリンク