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


FileExtraSource Class

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

Inheritance Hierarchy

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

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Декларация
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

The FileExtraSource type exposes the following members.

Constructors

  Name Description
Public method FileExtraSource(String, String, IEnumerable<String>) Initializes a new instance of the FileExtraSource class from a file at the specified path and set of tags.
Public method FileExtraSource(String, String, String[]) Initializes a new instance of the FileExtraSource class from a file at the specified path and set of tags.

Top

Properties

  Name Description
Public property FileName Gets the file name of the miscellaneous file.
Public property FilePath Gets the file path of the miscellaneous file.
Public property Size Gets the size of the miscellaneous file.
Public property Tags Gets the collection of tags associated with the extra source file.

Top

Methods

  Name Description
Public method Equals Determines whether this object is equal to the specified object. (Overrides ObjectEquals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetContentReader Gets the I/O file stream reader for the miscellaneous file. (Overrides BinarySourceBase.GetContentReader().)
Public method GetContents Gets the contents of the file stream in a byte array. (Inherited from BinarySourceBase.)
Public method GetHashCode Returns the hash code for this object. (Overrides ObjectGetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

Using the FileSource object, you can:

  • Access the miscellaneous file name and path.

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

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.Management.Dac Namespace