BamlLocalizer 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
初始化 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 輸入。
例外狀況
source
為 null
。
適用於
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 輸入。
- resolver
- BamlLocalizabilityResolver
BamlLocalizabilityResolver 的執行個體。
例外狀況
source
為 null
。
另請參閱
適用於
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 輸入。
- resolver
- BamlLocalizabilityResolver
BamlLocalizabilityResolver 的執行個體。
- comments
- TextReader
讀取與這個 BAML 輸入相關聯之當地語系化的 XML 註解。
例外狀況
source
為 null
。