ModulePropertiesPage.ProcessProperties(PropertyBag) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
派生クラスでオーバーライドされると、ユーザー定義のカスタム プロパティが返されます。
protected:
abstract void ProcessProperties(Microsoft::Web::Management::Server::PropertyBag ^ properties);
protected abstract void ProcessProperties (Microsoft.Web.Management.Server.PropertyBag properties);
abstract member ProcessProperties : Microsoft.Web.Management.Server.PropertyBag -> unit
Protected MustOverride Sub ProcessProperties (properties As PropertyBag)
パラメーター
- properties
- PropertyBag
ユーザー定義プロパティ。
例
次の例では、ユーザーのカスタム設定を作成し、 プロパティで指定された TargetObject オブジェクトに保存します。
internal class CustomPropertiesInfo : PropertyGridObject {
private PropertyBag _bag;
public CustomPropertiesInfo(
ModulePropertiesPage page,
PropertyBag bag)
: base(page) {
Initialize(bag);
}
public CustomPropertiesInfo(
ModulePropertiesPage page,
PropertyBag bag,
bool bRO)
: base(page, bRO) {
Initialize(bag);
}
internal void Initialize(PropertyBag bag) {
_bag = bag;
TrcData();
}
bool GetBoolProp(SH.PropInt pi) {
object o = _bag[pi.Indx];
if (o == null)
return false;
return (bool)o;
}
//
protected override void ProcessProperties(
PropertyBag properties) {
_bag = properties;
_clone = _bag.Clone(ReadOnly);
CustomPropertiesInfo info =
(CustomPropertiesInfo)TargetObject;
if (info == null) {
info = new CustomPropertiesInfo(this, _clone);
TargetObject = info;
} else {
info.Initialize(_clone);
}
ClearDirty();
}
注釈
ユーザー定義のカスタム プロパティは、 プロパティで指定された オブジェクトに保存する TargetObject 必要があります。
適用対象
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示