Export (0) Print
Expand All

FileExtraSource Class

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

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

public class FileExtraSource : BinarySourceBase, 
	IExtraSource, IBinarySource, ISizeItem

The FileExtraSource type exposes the following members.

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

  NameDescription
Public propertyFileNameGets the file name of the miscellaneous file.
Public propertyFilePathGets the file path of the miscellaneous file.
Public propertySizeGets the size of the miscellaneous file.
Public propertyTagsGets the collection of tags associated with the extra source file.
Top

  NameDescription
Public methodEqualsDetermines whether this object is equal to the specified object. (Overrides Object.Equals(Object).)
Protected methodFinalize (Inherited from Object.)
Public methodGetContentReaderGets the I/O file stream reader for the miscellaneous file. (Overrides BinarySourceBase.GetContentReader().)
Public methodGetContentsGets the contents of the file stream in a byte array. (Inherited from BinarySourceBase.)
Public methodGetHashCodeReturns the hash code for this object. (Overrides Object.GetHashCode().)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

Using the FileSource object, you can:

  • Access the miscellaneous file name and path.

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft