RegexCompilationInfo 類別

定義

警告

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

提供有關規則運算式的資訊,用於將規則運算式編譯成獨立組件。

public ref class RegexCompilationInfo
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}")]
public class RegexCompilationInfo
[System.Serializable]
public class RegexCompilationInfo
type RegexCompilationInfo = class
[<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
[<System.Serializable>]
type RegexCompilationInfo = class
Public Class RegexCompilationInfo
繼承
RegexCompilationInfo
屬性

備註

物件的陣列 RegexCompilationInfo 會傳遞至 方法, CompileToAssembly 以提供元件中要包含之每個正則運算式的相關資訊。 元件中包含的每個已編譯正則運算式都會以衍生自 Regex 的類別表示。 類型的屬性 RegexCompilationInfo 會定義正則運算式的類別名稱、其完整名稱 (,也就是其命名空間及其類型名稱) 、其正則運算式模式、任何額外的選項 (例如,正則運算式是否不區分大小寫) ,以及指定正則運算式引擎搜尋相符時間的時間間隔。

您可以呼叫其多載類別建構函式來具現化 RegexCompilationInfo 物件。

建構函式

RegexCompilationInfo(String, RegexOptions, String, String, Boolean)
已淘汰.

初始化 RegexCompilationInfo 類別的新執行個體,其中包含有關要包含在組件中的規則運算式的資訊。

RegexCompilationInfo(String, RegexOptions, String, String, Boolean, TimeSpan)
已淘汰.

初始化 RegexCompilationInfo 類別的新執行個體,這個執行個體包含要在組件中加入指定逾時值之規則運算式的相關資訊。

屬性

IsPublic
已淘汰.

取得或設定值,指出已編譯的規則運算式是否具有公用可視性。

MatchTimeout
已淘汰.

取得或設定規則運算式的預設逾時間隔。

Name
已淘汰.

取得或設定代表已編譯之規則運算式的型別名稱。

Namespace
已淘汰.

取得或設定新型別所屬的命名空間。

Options
已淘汰.

取得或設定要在編譯規則運算式時使用的選項。

Pattern
已淘汰.

取得或設定要編譯的規則運算式。

方法

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()
已淘汰.

做為預設雜湊函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()
已淘汰.

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()
已淘汰.

傳回代表目前物件的字串。

(繼承來源 Object)

適用於

另請參閱