FileGroupCollection.Remove FileGroupCollection.Remove FileGroupCollection.Remove Method

Definition

Removes a FileGroup object from the FileGroupCollection.

Overloads

Remove(FileGroup) Remove(FileGroup)

Removes a FileGroup object from the FileGroupCollection collection by specifying the object.

Remove(String) Remove(String) Remove(String)

Removes a FileGroup object from the FileGroupCollection collection by specifying the name of the filegroup.

Remove(FileGroup) Remove(FileGroup)

Removes a FileGroup object from the FileGroupCollection collection by specifying the object.

public:
 void Remove(Microsoft::SqlServer::Management::Smo::FileGroup ^ fileGroup);
public void Remove (Microsoft.SqlServer.Management.Smo.FileGroup fileGroup);
Parameters
fileGroup
FileGroup FileGroup FileGroup

A FileGroup object that specifies the filegroup to remove from the FileGroupCollection object.

Examples

Using Collections

Remove(String) Remove(String) Remove(String)

Removes a FileGroup object from the FileGroupCollection collection by specifying the name of the filegroup.

public:
 void Remove(System::String ^ name);
public void Remove (string name);
Public Sub Remove (name As String)
Parameters
name
String String String

A String value that specifies the name of the filegroup to be removed from the FileGroupCollection collection.

Examples

Using Collections

Applies to