BamlLocalizer 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 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 输入。
例外
source
为 null
。
适用于
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 输入。
- 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
。