FlavoredProject.SetProperty(UInt32, Int32, Object) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
设置特定节点或层次结构的属性。
protected:
virtual int SetProperty(System::UInt32 itemId, int propId, System::Object ^ property);
protected:
virtual int SetProperty(unsigned int itemId, int propId, Platform::Object ^ property);
virtual int SetProperty(unsigned int itemId, int propId, winrt::Windows::Foundation::IInspectable const & property);
protected virtual int SetProperty (uint itemId, int propId, object property);
abstract member SetProperty : uint32 * int * obj -> int
override this.SetProperty : uint32 * int * obj -> int
Protected Overridable Function SetProperty (itemId As UInteger, propId As Integer, property As Object) As Integer
参数
- itemId
- UInt32
项目的 ID。
- propId
- Int32
要设置的属性的 ID。
- property
- Object
该属性的值。
返回
如果该方法成功,则返回 S_OK 。 如果该方法失败,则会返回错误代码。
注解
此方法调用 SetProperty 内部项目的方法。