BamlLocalizer 构造函数

定义

初始化 BamlLocalizer 类的新实例。

重载

BamlLocalizer(Stream)

使用指定的 BAML 源流初始化 BamlLocalizer 类的新实例。

BamlLocalizer(Stream, BamlLocalizabilityResolver)

使用指定的本地化解析程序和 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)

使用指定的本地化解析程序和 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

另请参阅

适用于