RegexCompilationInfo クラス

定義

注意事項

Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.

正規表現をスタンドアロン アセンブリにコンパイルするために使用される正規表現に関する情報を提供します。

public ref class RegexCompilationInfo
[System.Obsolete("Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public class RegexCompilationInfo
public class RegexCompilationInfo
[System.Serializable]
public class RegexCompilationInfo
[<System.Obsolete("Regex.CompileToAssembly is obsolete and not supported. Use the GeneratedRegexAttribute with the regular expression source generator instead.", DiagnosticId="SYSLIB0036", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type RegexCompilationInfo = class
type RegexCompilationInfo = class
[<System.Serializable>]
type RegexCompilationInfo = class
Public Class RegexCompilationInfo
継承
RegexCompilationInfo
属性

注釈

RegexCompilationInfo オブジェクトの配列を CompileToAssembly メソッドに渡して、アセンブリに含める各正規表現に関する情報を提供します。 アセンブリに含まれるコンパイル済みの各正規表現は、 Regexから派生したクラスとして表されます。 RegexCompilationInfo型のプロパティは、正規表現のクラス名、完全修飾名 (名前空間とその型名)、正規表現パターン、追加オプション (正規表現で大文字と小文字が区別されないかどうかなど)、および正規表現エンジンが一致を検索する期間を指定するタイムアウト間隔を定義します。

オーバーロードされたクラス コンストラクターを呼び出すことによって、 RegexCompilationInfo オブジェクトをインスタンス化できます。

コンストラクター

名前 説明
RegexCompilationInfo(String, RegexOptions, String, String, Boolean, TimeSpan)
古い.

指定したタイムアウト値を持つ正規表現に関する情報をアセンブリに含める RegexCompilationInfo クラスの新しいインスタンスを初期化します。

RegexCompilationInfo(String, RegexOptions, String, String, Boolean)
古い.

アセンブリに含める正規表現に関する情報を含む RegexCompilationInfo クラスの新しいインスタンスを初期化します。

プロパティ

名前 説明
IsPublic
古い.

コンパイルされた正規表現がパブリックに表示されるかどうかを示す値を取得または設定します。

MatchTimeout
古い.

正規表現の既定のタイムアウト間隔を取得または設定します。

Name
古い.

コンパイル済みの正規表現を表す型の名前を取得または設定します。

Namespace
古い.

新しい型が属する名前空間を取得または設定します。

Options
古い.

正規表現のコンパイル時に使用するオプションを取得または設定します。

Pattern
古い.

コンパイルする正規表現を取得または設定します。

メソッド

名前 説明
Equals(Object)
古い.

指定したオブジェクトが現在のオブジェクトと等しいかどうかを判断します。

(継承元 Object)
GetHashCode()
古い.

既定のハッシュ関数として機能します。

(継承元 Object)
GetType()
古い.

現在のインスタンスの Type を取得します。

(継承元 Object)
MemberwiseClone()
古い.

現在の Objectの簡易コピーを作成します。

(継承元 Object)
ToString()
古い.

現在のオブジェクトを表す文字列を返します。

(継承元 Object)

適用対象

こちらもご覧ください