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.

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。