次の方法で共有


INSearchForNotebookItemsIntent コンストラクター

定義

オーバーロード

INSearchForNotebookItemsIntent()

既定値を使用して新しいノート検索インテントを作成します。

INSearchForNotebookItemsIntent(NSCoder)

unarchiver オブジェクトに格納されているデータから オブジェクトを初期化するコンストラクター。

INSearchForNotebookItemsIntent(NSObjectFlag)

初期化をスキップし、単に オブジェクトを割り当てるために、派生クラスで を呼び出すコンストラクター。

INSearchForNotebookItemsIntent(IntPtr)

アンマネージド オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

INSearchForNotebookItemsIntent(INSpeakableString, String, INNotebookItemType, INTaskStatus, CLPlacemark, INLocationSearchType, INDateComponentsRange, INDateSearchType)

開発者は、この非推奨のコンストラクターを使用しないでください。 開発者は、代わりに 'string notebookItemIdentifier' のコンストラクターを使用する必要があります。

INSearchForNotebookItemsIntent(INSpeakableString, String, INNotebookItemType, INTaskStatus, CLPlacemark, INLocationSearchType, INDateComponentsRange, INDateSearchType, String)

INSearchForNotebookItemsIntent()

既定値を使用して新しいノート検索インテントを作成します。

[Foundation.Export("init")]
public INSearchForNotebookItemsIntent ();
属性

適用対象

INSearchForNotebookItemsIntent(NSCoder)

unarchiver オブジェクトに格納されているデータから オブジェクトを初期化するコンストラクター。

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

パラメーター

coder
NSCoder

unarchiver オブジェクト。

属性

注釈

このコンストラクターは、(たとえば、NIB の逆シリアル化中に) 非アーキテクチャからクラスを初期化できるようにするために提供されます。 これはプロトコルの NSCoding 一部です。

開発者がこのオブジェクトのサブクラスを作成し、アーカイブからの逆シリアル化を引き続きサポートする場合は、同じシグネチャを持つコンストラクターを実装する必要があります。型 NSCoder のパラメーターを 1 つ取得し、[Export("initWithCoder:"] 属性宣言で修飾します。

このオブジェクトの状態は、コンパニオン メソッド EncodeTo を使用してシリアル化することもできます。

適用対象

INSearchForNotebookItemsIntent(NSObjectFlag)

初期化をスキップし、単に オブジェクトを割り当てるために、派生クラスで を呼び出すコンストラクター。

protected INSearchForNotebookItemsIntent (Foundation.NSObjectFlag t);
new Intents.INSearchForNotebookItemsIntent : Foundation.NSObjectFlag -> Intents.INSearchForNotebookItemsIntent

パラメーター

t
NSObjectFlag

未使用の Sentinel 値を渡し、NSObjectFlag.Empty を渡します。

注釈

このコンストラクターは、マネージド コードでオブジェクトを完全に構築し、ランタイムが NSObject を割り当てて初期化するだけで済む場合に、派生クラスによって呼び出される必要があります。 これは Objective-C が使用する 2 段階の初期化プロセスを実装するために必要です。最初の手順はオブジェクトの割り当てを実行し、2 番目の手順は オブジェクトを初期化することです。 開発者は、NSObjectFlag.Empty を受け取るコンストラクターを呼び出すときに、NSObject までの直接パスを利用して、単にオブジェクトのメモリを割り当てて Objective-C と C# オブジェクトをバインドするだけです。 オブジェクトの実際の初期化は開発者が行います。

このコンストラクターは通常、バインディング ジェネレーターによってオブジェクトを割り当てるために使用されますが、実際の初期化が行われるのを防ぎます。 割り当てが行われたら、コンストラクターは オブジェクトを初期化する必要があります。 バインディング ジェネレーターによって生成されたコンストラクターでは、オブジェクトを初期化するために "init" メソッドのいずれかを手動で呼び出します。

NSObjectFlag.Empty パスを使用してチェーンアップする場合、オブジェクトを完全に初期化するのは開発者の責任です。

一般に、開発者のコンストラクターが NSObjectFlag.Empty 基本実装を呼び出す場合は、Objective-C init メソッドを呼び出す必要があります。 そうでない場合、開発者は代わりにクラス内の適切なコンストラクターにチェーンする必要があります。

引数の値は無視され、実行される唯一のコードは、構築フェーズが基本的な NSObject 割り当てとランタイム型の登録であることを保証するだけです。 通常、チェーンは次のようになります。

//
// The NSObjectFlag merely allocates the object and registers the
// C# class with the Objective-C runtime if necessary, but no actual
// initXxx method is invoked, that is done later in the constructor
//
// This is taken from Xamarin.iOS's source code:
//
[Export ("initWithFrame:")]
public UIView (System.Drawing.RectangleF frame) : base (NSObjectFlag.Empty)
{
// Invoke the init method now.
	var initWithFrame = new Selector ("initWithFrame:").Handle;
	if (IsDirectBinding)
		Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSend_CGRect (this.Handle, initWithFrame, frame);
	else
		Handle = ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_CGRect (this.SuperHandle, initWithFrame, frame);
}

適用対象

INSearchForNotebookItemsIntent(IntPtr)

アンマネージド オブジェクトのマネージド表現を作成するときに使用されるコンストラクター。ランタイムによって呼び出されます。

protected internal INSearchForNotebookItemsIntent (IntPtr handle);
new Intents.INSearchForNotebookItemsIntent : nativeint -> Intents.INSearchForNotebookItemsIntent

パラメーター

handle
IntPtr

nativeint

アンマネージ オブジェクトへのポインター (ハンドル)。

注釈

このコンストラクターは、ランタイム インフラストラクチャ (GetNSObject(IntPtr)) によって呼び出され、アンマネージ Objective-C オブジェクトへのポインターの新しいマネージド表現を作成します。 開発者は、このメソッドを直接呼び出さないでください。代わりに GetNSObject メソッドを呼び出す必要があります。これにより、マネージド オブジェクトの 2 つのインスタンスが同じネイティブ オブジェクトを指すのを防ぐことができます。

適用対象

INSearchForNotebookItemsIntent(INSpeakableString, String, INNotebookItemType, INTaskStatus, CLPlacemark, INLocationSearchType, INDateComponentsRange, INDateSearchType)

開発者は、この非推奨のコンストラクターを使用しないでください。 開発者は、代わりに 'string notebookItemIdentifier' のコンストラクターを使用する必要があります。

[Foundation.Export("initWithTitle:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.WatchOS, 4, 2, ObjCRuntime.PlatformArchitecture.None, "Use the constructor with 'string notebookItemIdentifier' instead.")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 11, 2, ObjCRuntime.PlatformArchitecture.None, "Use the constructor with 'string notebookItemIdentifier' instead.")]
public INSearchForNotebookItemsIntent (Intents.INSpeakableString title, string content, Intents.INNotebookItemType itemType, Intents.INTaskStatus status, CoreLocation.CLPlacemark location, Intents.INLocationSearchType locationSearchType, Intents.INDateComponentsRange dateTime, Intents.INDateSearchType dateSearchType);
new Intents.INSearchForNotebookItemsIntent : Intents.INSpeakableString * string * Intents.INNotebookItemType * Intents.INTaskStatus * CoreLocation.CLPlacemark * Intents.INLocationSearchType * Intents.INDateComponentsRange * Intents.INDateSearchType -> Intents.INSearchForNotebookItemsIntent

パラメーター

title
INSpeakableString

追加する。

このパラメーターは、null に設定できます。

content
String

追加する。

このパラメーターは、null に設定できます。

status
INTaskStatus
location
CLPlacemark

追加する。

このパラメーターは、null に設定できます。

locationSearchType
INLocationSearchType
dateTime
INDateComponentsRange

追加する。

このパラメーターは、null に設定できます。

dateSearchType
INDateSearchType
属性

適用対象

INSearchForNotebookItemsIntent(INSpeakableString, String, INNotebookItemType, INTaskStatus, CLPlacemark, INLocationSearchType, INDateComponentsRange, INDateSearchType, String)

[Foundation.Export("initWithTitle:content:itemType:status:location:locationSearchType:dateTime:dateSearchType:notebookItemIdentifier:")]
[ObjCRuntime.DesignatedInitializer]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 2, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 2, ObjCRuntime.PlatformArchitecture.All, null)]
public INSearchForNotebookItemsIntent (Intents.INSpeakableString title, string content, Intents.INNotebookItemType itemType, Intents.INTaskStatus status, CoreLocation.CLPlacemark location, Intents.INLocationSearchType locationSearchType, Intents.INDateComponentsRange dateTime, Intents.INDateSearchType dateSearchType, string notebookItemIdentifier);
new Intents.INSearchForNotebookItemsIntent : Intents.INSpeakableString * string * Intents.INNotebookItemType * Intents.INTaskStatus * CoreLocation.CLPlacemark * Intents.INLocationSearchType * Intents.INDateComponentsRange * Intents.INDateSearchType * string -> Intents.INSearchForNotebookItemsIntent

パラメーター

title
INSpeakableString

追加する。

このパラメーターは、null に設定できます。

content
String

追加する。

このパラメーターは、null に設定できます。

status
INTaskStatus
location
CLPlacemark

追加する。

このパラメーターは、null に設定できます。

locationSearchType
INLocationSearchType
dateTime
INDateComponentsRange

追加する。

このパラメーターは、null に設定できます。

dateSearchType
INDateSearchType
notebookItemIdentifier
String

追加する。

このパラメーターは、null に設定できます。

属性

適用対象