共用方式為


SMODataFileEnumerator Class

Definition

Enumerates the SQL Server Management Objects (SMO) data file.

public ref class SMODataFileEnumerator : System::Collections::IEnumerator
public class SMODataFileEnumerator : System.Collections.IEnumerator
type SMODataFileEnumerator = class
    interface IEnumerator
Public Class SMODataFileEnumerator
Implements IEnumerator
Inheritance
SMODataFileEnumerator
Implements

Remarks

There are two SMO enumerators, one for enumerating over data files, which is this enumerator, and one for enumerating over other objects, which is the SMOEnumerator enumerator. This unique enumerator is needed because data files span filegroups.

Properties

Current

Gets the current object from the enumerator.

Methods

MoveNext()

Advances the enumerator to the next element of the collection.

Reset()

Sets the enumerator to its initial position, which is before the first element in the collection.

Applies to