NSXpcInterface.GetAllowedClasses 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 |
|---|---|
| GetAllowedClasses(Selector, UIntPtr, Boolean) | |
| GetAllowedClasses(MethodInfo, UIntPtr, Boolean) |
Gets the allowed classes for a specific method argument. |
GetAllowedClasses(Selector, UIntPtr, Boolean)
[Foundation.Export("classesForSelector:argumentIndex:ofReply:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual Foundation.NSSet<ObjCRuntime.Class> GetAllowedClasses(ObjCRuntime.Selector methodSelector, UIntPtr argumentIndex, bool forReplyBlock);
[<Foundation.Export("classesForSelector:argumentIndex:ofReply:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member GetAllowedClasses : ObjCRuntime.Selector * unativeint * bool -> Foundation.NSSet<ObjCRuntime.Class>
override this.GetAllowedClasses : ObjCRuntime.Selector * unativeint * bool -> Foundation.NSSet<ObjCRuntime.Class>
Parameters
- methodSelector
- Selector
- argumentIndex
-
UIntPtr
unativeint
- forReplyBlock
- Boolean
Returns
- Attributes
Applies to
GetAllowedClasses(MethodInfo, UIntPtr, Boolean)
Gets the allowed classes for a specific method argument.
public Foundation.NSSet<ObjCRuntime.Class> GetAllowedClasses(System.Reflection.MethodInfo method, UIntPtr argumentIndex, bool forReplyBlock);
member this.GetAllowedClasses : System.Reflection.MethodInfo * unativeint * bool -> Foundation.NSSet<ObjCRuntime.Class>
Parameters
- method
- MethodInfo
the method for which to get the allowed classes.
- argumentIndex
-
UIntPtr
unativeint
The zero-based index of the argument.
- forReplyBlock
- Boolean
A value indicating whether the allowed classes are for a reply block.
Returns
A set of allowed Class objects for the specified method argument.
Exceptions
Thrown when method is null.
Thrown when the method is not exposed to Objective-C.