Поделиться через


Класс FileExtraSource

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

Иерархия наследования

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

Пространство имен:  Microsoft.SqlServer.Management.Dac
Сборка:  Microsoft.SqlServer.Management.Dac (в Microsoft.SqlServer.Management.Dac.dll)

Синтаксис

'Декларация
Public Class FileExtraSource _
    Inherits BinarySourceBase _
    Implements IExtraSource, IBinarySource, ISizeItem
'Применение
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

Тип FileExtraSource обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод 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.
Открытый метод FileExtraSource(String, String, array<String> [] () [] []) Initializes a new instance of the FileExtraSource class from a file at the specified path and set of tags.

В начало

Свойства

  Имя Описание
Открытое свойство FileName Gets the file name of the miscellaneous file.
Открытое свойство FilePath Gets the file path of the miscellaneous file.
Открытое свойство Size Gets the size of the miscellaneous file.
Открытое свойство Tags Gets the collection of tags associated with the extra source file.

В начало

Методы

  Имя Описание
Открытый метод Equals Determines whether this object is equal to the specified object. (Переопределяет Object. . :: . .Equals(Object).)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetContentReader Gets the I/O file stream reader for the miscellaneous file. (Переопределяет BinarySourceBase. . :: . .GetContentReader() () () ().)
Открытый метод GetContents Gets the contents of the file stream in a byte array. (Производный от BinarySourceBase.)
Открытый метод GetHashCode Returns the hash code for this object. (Переопределяет Object. . :: . .GetHashCode() () () ().)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый метод ToString (Производный от Object.)

В начало

Замечания

Using the FileSource object, you can:

  • Access the miscellaneous file name and path.

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

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.