UriFormatExceptionとは? わかりやすく解説

UriFormatException クラス

無効な URI (Uniform Resource Identifier) が検出された場合にスローされる例外。

名前空間: System
アセンブリ: System (system.dll 内)
構文構文

<SerializableAttribute> _
Public Class UriFormatException
    Inherits FormatException
    Implements ISerializable
Dim instance As UriFormatException
[SerializableAttribute] 
public class UriFormatException : FormatException,
 ISerializable
[SerializableAttribute] 
public ref class UriFormatException : public
 FormatException, ISerializable
/** @attribute SerializableAttribute() */ 
public class UriFormatException extends FormatException
 implements ISerializable
SerializableAttribute 
public class UriFormatException extends
 FormatException implements ISerializable
解説解説
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.FormatException
        System.UriFormatException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

UriFormatException コンストラクタ ()


UriFormatException コンストラクタ (String)

指定したメッセージを使用して、UriFormatException クラスの新しいインスタンスを初期化します。

名前空間: System
アセンブリ: System (system.dll 内)
構文構文

Public Sub New ( _
    textString As String _
)
Dim textString As String

Dim instance As New UriFormatException(textString)
public UriFormatException (
    string textString
)
public:
UriFormatException (
    String^ textString
)
public UriFormatException (
    String textString
)
public function UriFormatException (
    textString : String
)

パラメータ

textString

エラー メッセージ文字列。

解説解説

UriFormatException コンストラクタは、Message プロパティを textString の値に設定して、UriFormatException インスタンスを初期化します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UriFormatException クラス
UriFormatException メンバ
System 名前空間

UriFormatException コンストラクタ (SerializationInfo, StreamingContext)

指定した SerializationInfo インスタンスと StreamingContext インスタンスから、UriFormatException クラスの新しいインスタンスを初期化します。

名前空間: System
アセンブリ: System (system.dll 内)
構文構文

Protected Sub New ( _
    serializationInfo As SerializationInfo, _
    streamingContext As StreamingContext _
)
Dim serializationInfo As SerializationInfo
Dim streamingContext As StreamingContext

Dim instance As New UriFormatException(serializationInfo,
 streamingContext)
protected UriFormatException (
    SerializationInfo serializationInfo,
    StreamingContext streamingContext
)
protected:
UriFormatException (
    SerializationInfo^ serializationInfo, 
    StreamingContext streamingContext
)
protected UriFormatException (
    SerializationInfo serializationInfo, 
    StreamingContext streamingContext
)
protected function UriFormatException (
    serializationInfo : SerializationInfo, 
    streamingContext : StreamingContext
)

パラメータ

serializationInfo

新しい UriFormatException をシリアル化するために必要な情報を格納する SerializationInfo。

streamingContext

新しい UriFormatException に関連付けられているシリアル化ストリームの転送元を格納している StreamingContext。

解説解説

このコンストラクタは、UriFormatException クラスの ISerializable インターフェイスを実装します。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
UriFormatException クラス
UriFormatException メンバ
System 名前空間
ISerializable

UriFormatException コンストラクタ

UriFormatException クラスの新しいインスタンスを初期化します。
オーバーロードの一覧オーバーロードの一覧

名前 説明
UriFormatException () UriFormatException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

UriFormatException (String) 指定したメッセージを使用して、UriFormatException クラスの新しいインスタンスを初期化します。

.NET Compact Framework によってサポートされています。

UriFormatException (SerializationInfo, StreamingContext) 指定した SerializationInfo インスタンスと StreamingContext インスタンスから、UriFormatException クラスの新しいインスタンスを初期化します。
参照参照

関連項目

UriFormatException クラス
UriFormatException メンバ
System 名前空間

UriFormatException プロパティ


UriFormatException メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.Serialization.ISerializable.GetObjectData SerializationInfo インスタンスに、UriFormatException をシリアル化するために必要なデータを設定します。
参照参照

関連項目

UriFormatException クラス
System 名前空間

UriFormatException メンバ

無効な URI (Uniform Resource Identifier) が検出された場合にスローされる例外。

UriFormatException データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド UriFormatException オーバーロードされます。 UriFormatException クラスの新しいインスタンスを初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外に割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
明示的インターフェイスの実装明示的インターフェイスの実装
  名前 説明
インターフェイスの明示的な実装 System.Runtime.Serialization.ISerializable.GetObjectData SerializationInfo インスタンスに、UriFormatException をシリアル化するために必要なデータを設定します。
参照参照

関連項目

UriFormatException クラス
System 名前空間



英和和英テキスト翻訳

英語⇒日本語日本語⇒英語

辞書ショートカット

すべての辞書の索引

「UriFormatException」の関連用語

UriFormatExceptionのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



UriFormatExceptionのページの著作権

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2026 Microsoft.All rights reserved.

©2026 GRAS Group, Inc.RSS