Classe FileExtraSource

The FileSource type represents a miscellaneous file that is included in the DAC package.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Management.Dac. . :: . .BinarySourceBase
    Microsoft.SqlServer.Management.Dac..::..FileExtraSource

Espace de noms :  Microsoft.SqlServer.Management.Dac
Assembly :  Microsoft.SqlServer.Management.Dac (en Microsoft.SqlServer.Management.Dac.dll)

Syntaxe

'Déclaration
Public Class FileExtraSource _
    Inherits BinarySourceBase _
    Implements IExtraSource, IBinarySource, ISizeItem
'Utilisation
Dim instance As FileExtraSource
public class FileExtraSource : BinarySourceBase, 
    IExtraSource, IBinarySource, ISizeItem
public ref class FileExtraSource : public BinarySourceBase, 
    IExtraSource, IBinarySource, ISizeItem
type FileExtraSource =  
    class
        inherit BinarySourceBase
        interface IExtraSource
        interface IBinarySource
        interface ISizeItem
    end
public class FileExtraSource extends BinarySourceBase implements IExtraSource, IBinarySource, ISizeItem

Le type FileExtraSource expose les membres suivants.

Constructeurs

  Nom Description
Méthode publique FileExtraSource(String, String, IEnumerable< (Of < <' (String> ) > > )) Initializes a new instance of the FileExtraSource class from a file at the specified path and set of tags.
Méthode publique FileExtraSource(String, String, array<String> [] () [] []) Initializes a new instance of the FileExtraSource class from a file at the specified path and set of tags.

Haut de la page

Propriétés

  Nom Description
Propriété publique FileName Gets the file name of the miscellaneous file.
Propriété publique FilePath Gets the file path of the miscellaneous file.
Propriété publique Size Gets the size of the miscellaneous file.
Propriété publique Tags Gets the collection of tags associated with the extra source file.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals Determines whether this object is equal to the specified object. (remplace Object. . :: . .Equals(Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetContentReader Gets the I/O file stream reader for the miscellaneous file. (remplace BinarySourceBase. . :: . .GetContentReader() () () ().)
Méthode publique GetContents Gets the contents of the file stream in a byte array. (hérité de BinarySourceBase.)
Méthode publique GetHashCode Returns the hash code for this object. (remplace Object. . :: . .GetHashCode() () () ().)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString (hérité de Object.)

Haut de la page

Notes

Using the FileSource object, you can:

  • Access the miscellaneous file name and path.

  • Access the I/O file stream reader for the file.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.