共用方式為


ComponentResourceManager.ApplyResourcesToRegisteredType 方法

定義

檢查所提供文化特性的所有資源。

當它以 格式尋找具有索引鍵的資源時

“[objectName]。[屬性名稱]“ 或 ”[objectName]-[屬性名稱]“ 會套用該資源的值

至物件上的對應屬性。 如果沒有相符專案

將會忽略資源的屬性。

public:
 virtual void ApplyResourcesToRegisteredType(System::Object ^ value, System::String ^ objectName, System::Globalization::CultureInfo ^ culture);
public virtual void ApplyResourcesToRegisteredType (object value, string objectName, System.Globalization.CultureInfo? culture);
abstract member ApplyResourcesToRegisteredType : obj * string * System.Globalization.CultureInfo -> unit
override this.ApplyResourcesToRegisteredType : obj * string * System.Globalization.CultureInfo -> unit
Public Overridable Sub ApplyResourcesToRegisteredType (value As Object, objectName As String, culture As CultureInfo)

參數

value
Object
objectName
String
culture
CultureInfo

適用於