CMAttachmentBearer.GetAttachment Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode) | |
GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode) |
Returns the attachment that is identifed by |
GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode)
public static T GetAttachment<T> (this CoreMedia.ICMAttachmentBearer target, CoreMedia.CMSampleBufferAttachmentKey key, out CoreMedia.CMAttachmentMode attachmentModeOut) where T : class, ObjCRuntime.INativeObject;
static member GetAttachment : CoreMedia.ICMAttachmentBearer * CoreMedia.CMSampleBufferAttachmentKey * -> 'T (requires 'T : null and 'T :> ObjCRuntime.INativeObject)
Type Parameters
- T
Parameters
- target
- ICMAttachmentBearer
- attachmentModeOut
- CMAttachmentMode
Returns
Applies to
GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)
Returns the attachment that is identifed by key
and writes the attachment propagation mode to attachmentModeOut
.
public static T GetAttachment<T> (this CoreMedia.ICMAttachmentBearer target, string key, out CoreMedia.CMAttachmentMode attachmentModeOut) where T : class, ObjCRuntime.INativeObject;
static member GetAttachment : CoreMedia.ICMAttachmentBearer * string * -> 'T (requires 'T : null and 'T :> ObjCRuntime.INativeObject)
Type Parameters
- T
The type of attachment to get.
Parameters
- target
- ICMAttachmentBearer
The object on which this method operates.
- key
- String
The string that identifies the attachment to return.
- attachmentModeOut
- CMAttachmentMode
An out parameter that receives a value that tells whether the attachment should propagate or not.
Returns
The specified attachment.