StoredProcedure.Parent 属性

Gets or sets the Database object that is the parent of the StoredProcedure object.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)> _
Public Property Parent As Database 
    Get 
    Set
用法
Dim instance As StoredProcedure 
Dim value As Database 

value = instance.Parent

instance.Parent = value
[SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)]
public Database Parent { get; set; }
[SfcObjectAttribute(SfcObjectRelationship::ParentObject, SfcObjectFlags::Design)]
public:
property Database^ Parent {
    Database^ get ();
    void set (Database^ value);
}
[<SfcObjectAttribute(SfcObjectRelationship.ParentObject, SfcObjectFlags.Design)>]
member Parent : Database with get, set
function get Parent () : Database 
function set Parent (value : Database)

属性值

类型:Microsoft.SqlServer.Management.Smo.Database
A Database object value that specifies the parent of the StoredProcedure object.

示例

创建、更改和删除存储过程

请参阅

参考

StoredProcedure 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

CREATE PROCEDURE (Transact-SQL)