ControlDesigner.Localize(IDesignTimeResourceWriter) 方法

定义

使用提供的资源编写器将关联控件的可本地化属性保持到设计宿主中的某个资源。Uses the provided resource writer to persist the localizable properties of the associated control to a resource in the design host.

public:
 void Localize(System::Web::UI::Design::IDesignTimeResourceWriter ^ resourceWriter);
public void Localize (System.Web.UI.Design.IDesignTimeResourceWriter resourceWriter);
member this.Localize : System.Web.UI.Design.IDesignTimeResourceWriter -> unit
Public Sub Localize (resourceWriter As IDesignTimeResourceWriter)

参数

resourceWriter
IDesignTimeResourceWriter

一个派生自 IDesignTimeResourceWriter 对象的对象,用于将资源写入设计时响应流中。An object derived from the IDesignTimeResourceWriter object that is used to write resources into the design-time response stream.

注解

设计宿主调用 Localize 方法为标记有 LocalizableAttribute 对象的每个属性创建资源条目,并为使用显式资源表达式作为值的所有属性创建资源条目。The Localize method is called by the design host to create resource entries for each property that is marked with a LocalizableAttribute object and any properties that use an explicit resource expression as a value.

适用于

另请参阅