CMAttachmentBearer.GetAttachment 方法

定义

重载

GetAttachment<T>(ICMAttachmentBearer, CMSampleBufferAttachmentKey, CMAttachmentMode)
GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)

返回由 key 标识的附件,并将附件传播模式写入 。attachmentModeOut

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)

类型参数

T

参数

attachmentModeOut
CMAttachmentMode

返回

T

适用于

GetAttachment<T>(ICMAttachmentBearer, String, CMAttachmentMode)

返回由 key 标识的附件,并将附件传播模式写入 。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)

类型参数

T

要获取的附件类型。

参数

target
ICMAttachmentBearer

此方法在其上运行的对象。

key
String

标识要返回的附件的字符串。

attachmentModeOut
CMAttachmentMode

一个 out 参数,它接收一个值,该值指示附件是否应传播。

返回

T

指定的附件。

适用于