共用方式為


BamlLocalizer 建構函式

定義

初始化 BamlLocalizer 類別的新執行個體。

多載

BamlLocalizer(Stream)

使用指定的 BAML 來源資料流,初始化 BamlLocalizer 類別的新執行個體。

BamlLocalizer(Stream, BamlLocalizabilityResolver)

使用指定的可當地語系化解析程式 (Resolver) 和 BAML 來源資料流,初始化 BamlLocalizer 類別的新執行個體。

BamlLocalizer(Stream, BamlLocalizabilityResolver, TextReader)

使用指定的可當地語系化解析程式、BAML 來源資料流和 BamlLocalizer,初始化 TextReader 類別的新執行個體。

BamlLocalizer(Stream)

使用指定的 BAML 來源資料流,初始化 BamlLocalizer 類別的新執行個體。

public:
 BamlLocalizer(System::IO::Stream ^ source);
public BamlLocalizer (System.IO.Stream source);
new System.Windows.Markup.Localizer.BamlLocalizer : System.IO.Stream -> System.Windows.Markup.Localizer.BamlLocalizer
Public Sub New (source As Stream)

參數

source
Stream

檔案資料流,包含要當地語系化的 BAML 輸入。

例外狀況

sourcenull

適用於

BamlLocalizer(Stream, BamlLocalizabilityResolver)

使用指定的可當地語系化解析程式 (Resolver) 和 BAML 來源資料流,初始化 BamlLocalizer 類別的新執行個體。

public:
 BamlLocalizer(System::IO::Stream ^ source, System::Windows::Markup::Localizer::BamlLocalizabilityResolver ^ resolver);
public BamlLocalizer (System.IO.Stream source, System.Windows.Markup.Localizer.BamlLocalizabilityResolver resolver);
new System.Windows.Markup.Localizer.BamlLocalizer : System.IO.Stream * System.Windows.Markup.Localizer.BamlLocalizabilityResolver -> System.Windows.Markup.Localizer.BamlLocalizer
Public Sub New (source As Stream, resolver As BamlLocalizabilityResolver)

參數

source
Stream

檔案資料流,包含要當地語系化的 BAML 輸入。

例外狀況

sourcenull

另請參閱

適用於

BamlLocalizer(Stream, BamlLocalizabilityResolver, TextReader)

使用指定的可當地語系化解析程式、BAML 來源資料流和 BamlLocalizer,初始化 TextReader 類別的新執行個體。

public:
 BamlLocalizer(System::IO::Stream ^ source, System::Windows::Markup::Localizer::BamlLocalizabilityResolver ^ resolver, System::IO::TextReader ^ comments);
public BamlLocalizer (System.IO.Stream source, System.Windows.Markup.Localizer.BamlLocalizabilityResolver resolver, System.IO.TextReader comments);
new System.Windows.Markup.Localizer.BamlLocalizer : System.IO.Stream * System.Windows.Markup.Localizer.BamlLocalizabilityResolver * System.IO.TextReader -> System.Windows.Markup.Localizer.BamlLocalizer
Public Sub New (source As Stream, resolver As BamlLocalizabilityResolver, comments As TextReader)

參數

source
Stream

檔案資料流,包含要當地語系化的 BAML 輸入。

comments
TextReader

讀取與這個 BAML 輸入相關聯之當地語系化的 XML 註解。

例外狀況

sourcenull

另請參閱

適用於