NSSound 构造函数

定义

重载

NSSound(NSPasteboard)
NSSound(NSCoder)
NSSound(NSData)
NSSound(NSObjectFlag)
NSSound(IntPtr)
NSSound(NSUrl, Boolean)
NSSound(String, Boolean)

NSSound(NSPasteboard)

[Foundation.Export("initWithPasteboard:")]
public NSSound (AppKit.NSPasteboard pasteboard);
new AppKit.NSSound : AppKit.NSPasteboard -> AppKit.NSSound

参数

pasteboard
NSPasteboard
属性

适用于

NSSound(NSCoder)

[Foundation.Export("initWithCoder:")]
[ObjCRuntime.DesignatedInitializer]
public NSSound (Foundation.NSCoder coder);
new AppKit.NSSound : Foundation.NSCoder -> AppKit.NSSound

参数

coder
NSCoder
属性

适用于

NSSound(NSData)

[Foundation.Export("initWithData:")]
public NSSound (Foundation.NSData data);
new AppKit.NSSound : Foundation.NSData -> AppKit.NSSound

参数

data
NSData
属性

适用于

NSSound(NSObjectFlag)

protected NSSound (Foundation.NSObjectFlag t);
new AppKit.NSSound : Foundation.NSObjectFlag -> AppKit.NSSound

参数

适用于

NSSound(IntPtr)

protected internal NSSound (IntPtr handle);
new AppKit.NSSound : nativeint -> AppKit.NSSound

参数

handle
IntPtr

nativeint

适用于

NSSound(NSUrl, Boolean)

[Foundation.Export("initWithContentsOfURL:byReference:")]
public NSSound (Foundation.NSUrl url, bool byRef);
new AppKit.NSSound : Foundation.NSUrl * bool -> AppKit.NSSound

参数

url
NSUrl
byRef
Boolean
属性

适用于

NSSound(String, Boolean)

[Foundation.Export("initWithContentsOfFile:byReference:")]
public NSSound (string path, bool byRef);
new AppKit.NSSound : string * bool -> AppKit.NSSound

参数

path
String
byRef
Boolean
属性

适用于