MonoMac 0.0.0.0 MonoMac.Foundation.NSObject MonoMac.Foundation.Register("NSMetadataQuery", true) To be added. To be added.
- Constructor
  0.0.0.0
  MonoMac.Foundation.Export("init")
  System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
  Default constructor that initializes a new instance of this class with no parameters.
- Constructor
  0.0.0.0
  MonoMac.Foundation.Export("initWithCoder:")
  System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
  The unarchiver object.
  A constructor that initializes the object from the data stored in the unarchiver object.
  This constructor is provided to allow the class to be initialized from an unarchiver (for example, during NIB deserialization).
- Constructor
  0.0.0.0
  System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
  Unused sentinel value, pass NSObjectFlag.Empty.
  Constructor to call on derived classes when the derived class has an [Export] constructor.

  This constructor should be called by derived classes when they are initialized using an [Export] attribute. The argument value is ignore, typically the chaining would look like this:

  public class MyClass : BaseClass { [Export ("initWithFoo:")] public MyClass (string foo) : base (NSObjectFlag.Empty) { ... }
- Constructor
  0.0.0.0
  System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Advanced)
  Pointer (handle) to the unmanaged object.
  A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

  This constructor is invoked by the runtime infrastructure () to create a new managed representation for a pointer to an unmanaged Objective-C object. You should not invoke this method directly, instead you should call the GetNSObject method as it will prevent two instances of a managed object to point to the same native object.

- Property
  0.0.0.0
  System.IntPtr The handle for this class. The pointer to the Objective-C class. Each MonoMac class mirrors an unmanaged Objective-C class. This value contains the pointer to the Objective-C class, it is similar to calling objc_getClass with the object name.
- Property
  0.0.0.0
  MonoMac.Foundation.NSMetadataQueryDelegate An instance of the MonoMac.Foundation.NSMetadataQueryDelegate model class which acts as the class delegate.

  The instance of the MonoMac.Foundation.NSMetadataQueryDelegate model class

  This value can be .

  The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.

  When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events

  This is the strongly typed version of the object, use the WeakDelegate property instead if you want to merely assign a class derived from NSObject that has been decorated with [Export] attributes.

- Property
  0.0.0.0
  MonoMac.Foundation.NSString Notification constant for DidFinishGathering NSString constant, should be used as a token to NSNotificationCenter.

  This constant can be used with the to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.

  If you want to subscribe to this notification, you can use the convenience . method which offers strongly typed access to the parameters of the notification.

  The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:

  `// // Lambda style // // listening notification = NSMetadataQuery.Notifications.ObserveDidFinishGathering ((sender, args) => { /* Access strongly typed args */ Console.WriteLine ("Notification: {0}", args.Notification); }); // To stop listening: notification.Dispose (); // // Method style // NSObject notification; void Callback (object sender, DidFinishGathering args) { // Access strongly typed args Console.WriteLine ("Notification: {0}", args.Notification); } void Setup () { notification = NSMetadataQuery.Notifications.ObserveDidFinishGathering (Callback); } void Teardown () { notification.Dispose (); }`

  The following example shows how to use the notification with the DefaultCenter API:

  `// Lambda style NSNotificationCenter.DefaultCenter.AddObserver ( NSMetadataQuery.DidFinishGatheringNotification, (notification) => {Console.WriteLine ("Received the notification NSMetadataQuery", notification); } // Method style void Callback (NSNotification notification) { Console.WriteLine ("Received a notification NSMetadataQuery", notification); } void Setup () { NSNotificationCenter.DefaultCenter.AddObserver (NSMetadataQuery.DidFinishGatheringNotification, Callback); }`
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Notification constant for DidStartGathering NSString constant, should be used as a token to NSNotificationCenter.

  This constant can be used with the to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.

  If you want to subscribe to this notification, you can use the convenience . method which offers strongly typed access to the parameters of the notification.

  The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:

  `// // Lambda style // // listening notification = NSMetadataQuery.Notifications.ObserveDidStartGathering ((sender, args) => { /* Access strongly typed args */ Console.WriteLine ("Notification: {0}", args.Notification); }); // To stop listening: notification.Dispose (); // // Method style // NSObject notification; void Callback (object sender, DidStartGathering args) { // Access strongly typed args Console.WriteLine ("Notification: {0}", args.Notification); } void Setup () { notification = NSMetadataQuery.Notifications.ObserveDidStartGathering (Callback); } void Teardown () { notification.Dispose (); }`

  The following example shows how to use the notification with the DefaultCenter API:

  `// Lambda style NSNotificationCenter.DefaultCenter.AddObserver ( NSMetadataQuery.DidStartGatheringNotification, (notification) => {Console.WriteLine ("Received the notification NSMetadataQuery", notification); } // Method style void Callback (NSNotification notification) { Console.WriteLine ("Received a notification NSMetadataQuery", notification); } void Setup () { NSNotificationCenter.DefaultCenter.AddObserver (NSMetadataQuery.DidStartGatheringNotification, Callback); }`
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Notification constant for DidUpdate NSString constant, should be used as a token to NSNotificationCenter.

  This constant can be used with the to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.

  If you want to subscribe to this notification, you can use the convenience . method which offers strongly typed access to the parameters of the notification.

  The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:

  `// // Lambda style // // listening notification = NSMetadataQuery.Notifications.ObserveDidUpdate ((sender, args) => { /* Access strongly typed args */ Console.WriteLine ("Notification: {0}", args.Notification); }); // To stop listening: notification.Dispose (); // // Method style // NSObject notification; void Callback (object sender, DidUpdate args) { // Access strongly typed args Console.WriteLine ("Notification: {0}", args.Notification); } void Setup () { notification = NSMetadataQuery.Notifications.ObserveDidUpdate (Callback); } void Teardown () { notification.Dispose (); }`

  The following example shows how to use the notification with the DefaultCenter API:

  `// Lambda style NSNotificationCenter.DefaultCenter.AddObserver ( NSMetadataQuery.DidUpdateNotification, (notification) => {Console.WriteLine ("Received the notification NSMetadataQuery", notification); } // Method style void Callback (NSNotification notification) { Console.WriteLine ("Received a notification NSMetadataQuery", notification); } void Setup () { NSNotificationCenter.DefaultCenter.AddObserver (NSMetadataQuery.DidUpdateNotification, Callback); }`
- Method
  0.0.0.0
  MonoMac.Foundation.Export("disableUpdates")
  System.Void To be added. To be added.
- Method
  0.0.0.0
  System.Void ``

  If set to , the method is invoked directly and will dispose manage and unmanaged resources; If set to the method is being called by the garbage collector finalizer and should only release unmanaged resources.

  Releases the resources used by the NSMetadataQuery object.

  This Dispose method releases the resources used by the NSMetadataQuery class.

  This method is called by both the Dispose() method and the object finalizer (Finalize). When invoked by the Dispose method, the parameter disposting is set to and any managed object references that this object holds are also disposed or released; when invoked by the object finalizer, on the finalizer thread the value is set to .

  Calling the Dispose method when you are finished using the NSMetadataQuery ensures that all external resources used by this managed object are released as soon as possible. Once you have invoked the Dispose method, the object is no longer useful and you should no longer make any calls to it.

  For more information on how to override this method and on the Dispose/IDisposable pattern, read the ``Implementing a Dispose Method'' document at http://msdn.microsoft.com/en-us/library/fs2xkftw.aspx

- Method
  0.0.0.0
  MonoMac.Foundation.Export("enableUpdates")
  System.Void To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Notification constant for GatheringProgress NSString constant, should be used as a token to NSNotificationCenter.

  This constant can be used with the to register a listener for this notification. This is an NSString instead of a string, because these values can be used as tokens in some native libraries instead of being used purely for their actual string content. The 'notification' parameter to the callback contains extra information that is specific to the notification type.

  If you want to subscribe to this notification, you can use the convenience . method which offers strongly typed access to the parameters of the notification.

  The following example shows how to use the strongly typed Notifications class, to take the guesswork out of the available properties in the notification:

  `// // Lambda style // // listening notification = NSMetadataQuery.Notifications.ObserveGatheringProgress ((sender, args) => { /* Access strongly typed args */ Console.WriteLine ("Notification: {0}", args.Notification); }); // To stop listening: notification.Dispose (); // // Method style // NSObject notification; void Callback (object sender, GatheringProgress args) { // Access strongly typed args Console.WriteLine ("Notification: {0}", args.Notification); } void Setup () { notification = NSMetadataQuery.Notifications.ObserveGatheringProgress (Callback); } void Teardown () { notification.Dispose (); }`

  The following example shows how to use the notification with the DefaultCenter API:

  `// Lambda style NSNotificationCenter.DefaultCenter.AddObserver ( NSMetadataQuery.GatheringProgressNotification, (notification) => {Console.WriteLine ("Received the notification NSMetadataQuery", notification); } // Method style void Callback (NSNotification notification) { Console.WriteLine ("Received a notification NSMetadataQuery", notification); } void Setup () { NSNotificationCenter.DefaultCenter.AddObserver (NSMetadataQuery.GatheringProgressNotification, Callback); }`
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("groupedResults")
  MonoMac.Foundation.NSObject[] To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("groupingAttributes")
  set: MonoMac.Foundation.Export("setGroupingAttributes:")
  MonoMac.Foundation.NSArray To be added. To be added. To be added.
- Method
  0.0.0.0
  MonoMac.Foundation.Export("indexOfResult:")
  System.Int32 `` To be added. To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("isGathering")
  System.Boolean To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("isStarted")
  System.Boolean To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("isStopped")
  System.Boolean To be added. To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemDisplayNameKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemFSContentChangeDateKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemFSCreationDateKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemFSNameKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemFSSizeKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemIsUbiquitousKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemPathKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataItemURLKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("notificationBatchingInterval")
  set: MonoMac.Foundation.Export("setNotificationBatchingInterval:")
  System.Double To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("predicate")
  set: MonoMac.Foundation.Export("setPredicate:")
  MonoMac.Foundation.NSPredicate To be added. To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString To be added. To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString To be added. To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataQueryUbiquitousDataScope To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataQueryUbiquitousDocumentsScope To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSMetadataQueryObject Delegate invoked by the object to get a value. To be added. You assign a function, delegate or anonymous method to this property to return a value to the object. If you assign a value to this property, it this will reset the value for the Delegate property to an internal handler that maps delegates to events.
- Property
  0.0.0.0
  MonoMac.Foundation.NSMetadataQueryValue Delegate invoked by the object to get a value. To be added. You assign a function, delegate or anonymous method to this property to return a value to the object. If you assign a value to this property, it this will reset the value for the Delegate property to an internal handler that maps delegates to events.
- Method
  0.0.0.0
  MonoMac.Foundation.Export("resultAtIndex:")
  MonoMac.Foundation.NSObject `` To be added. To be added. To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataQueryResultContentRelevanceAttribute To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("resultCount")
  System.Int32 To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("results")
  MonoMac.Foundation.NSMetadataItem[] To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("searchScopes")
  set: MonoMac.Foundation.Export("setSearchScopes:")
  MonoMac.Foundation.NSObject[] To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("sortDescriptors")
  set: MonoMac.Foundation.Export("setSortDescriptors:")
  MonoMac.Foundation.NSSortDescriptor[] To be added. To be added. To be added.
- Method
  0.0.0.0
  MonoMac.Foundation.Export("startQuery")
  System.Boolean To be added. To be added. To be added.
- Method
  0.0.0.0
  MonoMac.Foundation.Export("stopQuery")
  System.Void To be added. To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemHasUnresolvedConflictsKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemIsDownloadedKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemIsDownloadingKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemIsUploadedKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemIsUploadingKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemPercentDownloadedKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString Represents the value associated with the constant NSMetadataUbiquitousItemPercentUploadedKey To be added.
- Property
  0.0.0.0
  MonoMac.Foundation.NSString To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("valueListAttributes")
  set: MonoMac.Foundation.Export("setValueListAttributes:")
  MonoMac.Foundation.NSObject[] To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("valueLists")
  MonoMac.Foundation.NSDictionary To be added. To be added. To be added.
- Method
  0.0.0.0
  MonoMac.Foundation.Export("valueOfAttribute:forResultAtIndex:")
  MonoMac.Foundation.NSObject `` `` To be added. To be added. To be added. To be added. To be added.
- Property
  0.0.0.0
  get: MonoMac.Foundation.Export("delegate", MonoMac.ObjCRuntime.ArgumentSemantic.Assign)
  set: MonoMac.Foundation.Export("setDelegate:", MonoMac.ObjCRuntime.ArgumentSemantic.Assign)
  MonoMac.Foundation.NSMetadataQueryDelegate An object that can respond to the delegate protocol for this type

  The instance that will respond to events and data requests.

  This value can be .

  The delegate instance assigned to this object will be used to handle events or provide data on demand to this class.

  When setting the Delegate or WeakDelegate values events will be delivered to the specified instance instead of being delivered to the C#-style events

  Methods must be decorated with the [Export ("selectorName")] attribute to respond to each method from the protocol. Alternatively use the Delegate method which is strongly typed and does not require the [Export] attributes on methods.