LogFileCollection.Remove LogFileCollection.Remove LogFileCollection.Remove Method

Definition

Removes a LogFile object from the LogFileCollection collection.

Overloads

Remove(LogFile) Remove(LogFile)

Removes a LogFile object from the LogFileCollection collection.

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

Removes a LogFile object from the LogFileCollection collection.

Remove(LogFile) Remove(LogFile)

Removes a LogFile object from the LogFileCollection collection.

public:
 void Remove(Microsoft::SqlServer::Management::Smo::LogFile ^ logFile);
public void Remove (Microsoft.SqlServer.Management.Smo.LogFile logFile);
Parameters
logFile
LogFile LogFile LogFile

A LogFile object value that specifies the log file to be removed from the LogFileCollection collection.

Examples

Using Collections

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

Removes a LogFile object from the LogFileCollection collection.

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 log file to be removed from the LogFileCollection collection.

Examples

Using Collections

Applies to