Condividi tramite


Classe FileExtraSource

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

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Sintassi

'Dichiarazione
Public Class FileExtraSource _
    Inherits BinarySourceBase _
    Implements IExtraSource, IBinarySource, ISizeItem
'Utilizzo
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

Nel tipo FileExtraSource sono esposti i membri seguenti.

Costruttori

  Nome Descrizione
Metodo pubblico 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.
Metodo pubblico FileExtraSource(String, String, array<String> [] () [] []) Initializes a new instance of the FileExtraSource class from a file at the specified path and set of tags.

In alto

Proprietà

  Nome Descrizione
Proprietà pubblica FileName Gets the file name of the miscellaneous file.
Proprietà pubblica FilePath Gets the file path of the miscellaneous file.
Proprietà pubblica Size Gets the size of the miscellaneous file.
Proprietà pubblica Tags Gets the collection of tags associated with the extra source file.

In alto

Metodi

  Nome Descrizione
Metodo pubblico Equals Determines whether this object is equal to the specified object. Esegue l'override di Object. . :: . .Equals(Object).
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico GetContentReader Gets the I/O file stream reader for the miscellaneous file. Esegue l'override di BinarySourceBase. . :: . .GetContentReader() () () ().
Metodo pubblico GetContents Gets the contents of the file stream in a byte array. Ereditato da BinarySourceBase.
Metodo pubblico GetHashCode Returns the hash code for this object. Esegue l'override di Object. . :: . .GetHashCode() () () ().
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Osservazioni

Using the FileSource object, you can:

  • Access the miscellaneous file name and path.

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

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.