NSOrderedSet.Contains 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 |
|---|---|
| Contains(NSObject) | |
| Contains(Object) |
Determines whether the ordered set contains the specified object. |
Contains(NSObject)
[Foundation.Export("containsObject:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual bool Contains(Foundation.NSObject obj);
[<Foundation.Export("containsObject:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member Contains : Foundation.NSObject -> bool
override this.Contains : Foundation.NSObject -> bool
Parameters
- obj
- NSObject
Returns
- Attributes
Applies to
Contains(Object)
Determines whether the ordered set contains the specified object.
public bool Contains(object obj);
public bool Contains(object? obj);
member this.Contains : obj -> bool
Parameters
- obj
- Object
The object to locate in the ordered set.
Returns
true if the ordered set contains the specified object; otherwise, false.