Share via


Database.ContainmentType Property

Gets or sets the type of containment.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ContainmentType As ContainmentType 
    Get 
    Set
'Usage
Dim instance As Database 
Dim value As ContainmentType 

value = instance.ContainmentType

instance.ContainmentType = value
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public ContainmentType ContainmentType { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property ContainmentType ContainmentType {
    ContainmentType get ();
    void set (ContainmentType value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member ContainmentType : ContainmentType with get, set
function get ContainmentType () : ContainmentType 
function set ContainmentType (value : ContainmentType)

Property Value

Type: Microsoft.SqlServer.Management.Smo.ContainmentType
The object that contains.

See Also

Reference

Database Class

Microsoft.SqlServer.Management.Smo Namespace