NSXpcInterface.Create 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
| Name | Description |
|---|---|
| Create(Protocol) | |
| Create(Type) |
Creates an NSXpcInterface instance for the specified interface type. |
Create(Protocol)
[Foundation.Export("interfaceWithProtocol:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static Foundation.NSXpcInterface Create(ObjCRuntime.Protocol protocol);
[<Foundation.Export("interfaceWithProtocol:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : ObjCRuntime.Protocol -> Foundation.NSXpcInterface
Parameters
- protocol
- Protocol
Returns
- Attributes
Applies to
Create(Type)
Creates an NSXpcInterface instance for the specified interface type.
public static Foundation.NSXpcInterface Create(Type interfaceType);
static member Create : Type -> Foundation.NSXpcInterface
Parameters
- interfaceType
- Type
The interface type that defines the XPC protocol.
Returns
A new NSXpcInterface instance.
Exceptions
Thrown when interfaceType is null.