Share via


SMODataFileEnumerator Class

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

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO.SMODataFileEnumerator

Namespace:  Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO
Assembly:  Microsoft.SqlServer.ForEachSMOEnumerator (in Microsoft.SqlServer.ForEachSMOEnumerator.dll)

Syntax

'Declaration
Public Class SMODataFileEnumerator _
    Implements IEnumerator
'Usage
Dim instance As SMODataFileEnumerator
public class SMODataFileEnumerator : IEnumerator
public ref class SMODataFileEnumerator : IEnumerator
type SMODataFileEnumerator =  
    class 
        interface IEnumerator 
    end
public class SMODataFileEnumerator implements IEnumerator

The SMODataFileEnumerator type exposes the following members.

Properties

  Name Description
Public property Current Gets the current object from the enumerator.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method MoveNext Advances the enumerator to the next element of the collection.
Public method Reset Sets the enumerator to its initial position, which is before the first element in the collection.
Public method ToString (Inherited from Object.)

Top

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.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.SqlServer.Dts.Runtime.Enumerators.SMO Namespace