SubscriptionClass.Parent Property
この SubscriptionClass の Application オブジェクトを取得または設定します。
名前空間: Microsoft.SqlServer.Management.Nmo
アセンブリ: Microsoft.SqlServer.Smo (microsoft.sqlserver.smo.dll 内)
構文
'宣言
Public Property Parent As Application
public Application Parent { get; set; }
public:
property Application^ Parent {
Application^ get ();
void set (Application^ value);
}
/** @property */
public Application get_Parent ()
/** @property */
public void set_Parent (Application value)
public function get Parent () : Application
public function set Parent (value : Application)
プロパティ値
Application オブジェクトです。
解説
更新されたテキスト :2005 年 12 月 5 日
更新されたサンプル コード :2005 年 12 月 5 日
SubscriptionClass には、それぞれ親の Application があります。通常は、SubscriptionClass(Application,String) コンストラクタを使用して SubscriptionClass を作成する際に、親オブジェクトを指定します。
コンストラクタで親を設定する場合は、このプロパティを使用して親を設定しないでください。親を 2 回設定すると例外がスローされます。
使用例
次の例は、既定のコンストラクタを使用する場合に Parent プロパティを設定する方法を示しています。
// Create a subscription class and set required properties.
SubscriptionClass flightSubscriptions = new SubscriptionClass();
flightSubscriptions.Name = "FlightSubscriptions";
flightSubscriptions.Parent = myApplication;
flightSubscriptions.FileGroup = "PRIMARY";
' Create a subscription class and set required properties.
Dim flightSubscriptions As SubscriptionClass = New SubscriptionClass()
flightSubscriptions.Name = "FlightSubscriptions"
flightSubscriptions.Parent = myApplication
flightSubscriptions.FileGroup = "PRIMARY"
スレッド セーフ
この型の public static (Microsoft Visual Basic では共有 ) メンバは、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォーム
開発プラットフォーム
サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。
対象プラットフォーム
サポートされているプラットフォームの一覧については、「SQL Server 2005 のインストールに必要なハードウェアおよびソフトウェア」を参照してください。
参照
関連項目
SubscriptionClass Class
SubscriptionClass Members
Microsoft.SqlServer.Management.Nmo Namespace