This interface is used to implement Strong Object references. More...
Public Member Functions | |
HRESULT | Initialize ([in, ref] aafUID_constref id,[in] IAAFClassDef *pObjType,[in, string] aafCharacter_constptr pTypeName) |
Initializes this type def to be a reference to objects of the given type, and assigns this object the given AUID. |
This interface is used to implement Strong Object references.
In addition to the specific error results listed for each method, all methods in this interface may also return one of the following values:
AAFRESULT_NOMEMORY
Objects that implement IAAFTypeDefStrongObjRef also implement the following interfaces:
HRESULT IAAFTypeDefStrongObjRef::Initialize | ( | [in, ref] aafUID_constref | id, |
[in] IAAFClassDef * | pObjType, | ||
[in, string] aafCharacter_constptr | pTypeName | ||
) |
Initializes this type def to be a reference to objects of the given type, and assigns this object the given AUID.
pObjType points to the class definition of the least-derived class which is possible to be contained in property values of this type.
This method must be called after allocation, and before any other method can be called.
Succeeds if:
This method will return the following codes. If more than one of the listed errors is in effect, it will return the first one encountered in the order given below:
AAFRESULT_SUCCESS
AAFRESULT_ALREADY_INITIALIZED
AAFRESULT_NULL_PARAM
id | [in, ref] auid to be used to identify this type |
pObjType | [in] class def of objects permitted to be referenced |
pTypeName | [in, string] friendly name of this type definition |