设置指定依赖项对象的 OwningPropertyContainer 附加属性的值。
命名空间:  Microsoft.Windows.Design.PropertyEditing
程序集:  Microsoft.Windows.Design.Interaction(在 Microsoft.Windows.Design.Interaction.dll 中)
语法
声明
Public Shared Sub SetOwningPropertyContainer ( _
    dependencyObject As DependencyObject, _
    value As PropertyContainer _
)
public static void SetOwningPropertyContainer(
    DependencyObject dependencyObject,
    PropertyContainer value
)
public:
static void SetOwningPropertyContainer(
    DependencyObject^ dependencyObject, 
    PropertyContainer^ value
)
static member SetOwningPropertyContainer : 
        dependencyObject:DependencyObject * 
        value:PropertyContainer -> unit 
public static function SetOwningPropertyContainer(
    dependencyObject : DependencyObject, 
    value : PropertyContainer
)
参数
- dependencyObject
 类型:System.Windows.DependencyObject
 对其设置该属性的 DependencyObject。
.NET Framework 安全性
- 对直接调用方的完全信任。此成员不能由部分信任的代码使用。有关更多信息,请参见通过部分受信任的代码使用库。
请参见
参考
Microsoft.Windows.Design.PropertyEditing 命名空间