共用方式為


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

指定的附件。

適用於