InsertAttribute クラス
DomainService メソッドを Insert メソッドとして指定します。
名前空間: System.ServiceModel.DomainServices.Server
アセンブリ: System.ServiceModel.DomainServices.Server (system.servicemodel.domainservices.server.dll 内)
使用方法
'使用
Dim instance As InsertAttribute
構文
'宣言
<AttributeUsageAttribute(AttributeTargets.Method Or AttributeTargets.Property Or AttributeTargets.Field, AllowMultiple:=False, Inherited:=True)> _
Public NotInheritable Class InsertAttribute
Inherits Attribute
[AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false, Inherited=true)]
public sealed class InsertAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Method|AttributeTargets::Property|AttributeTargets::Field, AllowMultiple=false, Inherited=true)]
public ref class InsertAttribute sealed : public Attribute
/** @attribute AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false, Inherited=true) */
public final class InsertAttribute extends Attribute
AttributeUsageAttribute(AttributeTargets.Method|AttributeTargets.Property|AttributeTargets.Field, AllowMultiple=false, Inherited=true)
public final class InsertAttribute extends Attribute
解説
InsertAttribute 属性をメソッドに適用してメソッドが Insert メソッドであることを表します。メソッドが Insert メソッドに予想されるメソッド シグネチャと一致する場合、InsertAttribute を適用する必要はありません。RIA サービス フレームワークは、予想される Insert シグネチャのメソッドを挿入操作として処理することを推論します。IgnoreAttribute をメソッドに適用して、RIA サービス フレームワークがそのメソッドのドメイン操作を生成しないようにします。
Insert メソッドに予想されるシグネチャを以下に示します。
戻り値 |
なし |
パラメーター |
エンティティ |
名前のプレフィックス |
Insert、Add、または Create |
属性 |
または
|
例 |
または
|
継承階層
System.Object
System.Attribute
System.ServiceModel.DomainServices.Server.InsertAttribute
スレッド セーフ
この型の public static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。
プラットフォーム
開発プラットフォーム
Windows XP Home Edition, Windows XP Professional, Windows Server 2003 、Windows Server 2008、および Windows 2000
ターゲット プラットフォーム
参照
リファレンス
InsertAttribute のメンバー
System.ServiceModel.DomainServices.Server 名前空間