既定の SynchronizationOption を使用して、SynchronizationAttribute クラスの新しいインスタンスを初期化します。
名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文
'宣言
Public Sub New
'使用
Dim instance As New SynchronizationAttribute
public SynchronizationAttribute ()
public:
SynchronizationAttribute ()
public SynchronizationAttribute ()
public function SynchronizationAttribute ()
解説
Value プロパティは、既定の Required 値に設定されます。
使用例
新しい SynchronizationAttribute を作成するコード例を次に示します。
' This is equivalent to [Synchronization(SynchronizationOption.Required)].
<Synchronization()> _
Public Class SynchronizationAttribute_Ctor
Inherits ServicedComponent
End Class 'SynchronizationAttribute_Ctor
// This is equivalent to [Synchronization(SynchronizationOption.Required)].
[Synchronization]
public class SynchronizationAttribute_Ctor : ServicedComponent
{
}
// This is equivalent to [Synchronization(SynchronizationOption.Required)].
/** @attribute Synchronization()
*/
public class SynchronizationAttribute_Ctor extends ServicedComponent
{
} //SynchronizationAttribute_Ctor
.NET Framework のセキュリティ
- 直前の呼び出し元に対する完全な信頼。このメンバは、部分的に信頼されているコードから使用することはできません。詳細については、「」を参照してください。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0
参照
関連項目
SynchronizationAttribute クラス
SynchronizationAttribute メンバ
System.EnterpriseServices 名前空間