ConnectionProviderAttribute.DisplayNameValue 屬性

定義

取得或設定字串,適用於當地語系化案例中做為 DisplayName 屬性的值。

protected:
 property System::String ^ DisplayNameValue { System::String ^ get(); void set(System::String ^ value); };
protected string DisplayNameValue { get; set; }
member this.DisplayNameValue : string with get, set
Protected Property DisplayNameValue As String

屬性值

字串,做為 DisplayName 的值。

備註

這個額外的屬性存在,因此您可以衍生自 ConnectionProviderAttribute 並提供當地語系化的版本。 衍生的可 ConnectionProviderAttribute 當地語系化屬性會維護私用布林值欄位,以指出它是否已當地語系化。 在第一次存取 DisplayName 屬性時,它會查閱當地語系化字串,然後使用 DisplayNameValue 屬性將當地語系化的值指派給 DisplayName 屬性。

適用於

另請參閱