DocumentProperties.GetObjects(UInt32, UInt32, Object[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回由此对象管理的对象的列表 DocumentProperties 。
public:
virtual int GetObjects(System::UInt32 flags, System::UInt32 count, cli::array <System::Object ^> ^ ppUnk);
public:
virtual int GetObjects(unsigned int flags, unsigned int count, Platform::Array <Platform::Object ^> ^ ppUnk);
virtual int GetObjects(unsigned int flags, unsigned int count, std::Array <winrt::Windows::Foundation::IInspectable const &> const & ppUnk);
public virtual int GetObjects (uint flags, uint count, object[] ppUnk);
abstract member GetObjects : uint32 * uint32 * obj[] -> int
override this.GetObjects : uint32 * uint32 * obj[] -> int
Public Overridable Function GetObjects (flags As UInteger, count As UInteger, ppUnk As Object()) As Integer
参数
- flags
- UInt32
中这可以是 GETOBJS_ALL 获取所有对象,或者 GETOBJS_SELECTED 只获取所选对象。
- count
- UInt32
中要返回的对象的最大数目。
- ppUnk
- Object[]
[in,out]用要返回的对象填充的数组。
返回
如果成功, S_OK 则返回; 否则返回错误代码。
实现
注解
此方法用于在 " 属性 " 窗口中管理多个对象。 语言服务通常只需要一个 DocumentProperties 对象,基方法会自动处理这种情况。
此方法是 GetObjects 接口上方法的实现 ISelectionContainer 。
DocumentProperties如果 count 参数为1,则基方法返回对象。 基本方法始终返回成功代码 S_OK 。