OpenXmlPackage.FromFlatOpcDocumentCore 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
FromFlatOpcDocumentCore(XDocument, Package) | |
FromFlatOpcDocumentCore(XDocument, Stream) | |
FromFlatOpcDocumentCore(XDocument, String) |
将 XDocument 平面 OPC 格式的 转换为存储在文件中的 OpenXml 包。 |
FromFlatOpcDocumentCore(XDocument, Package)
protected static System.IO.Packaging.Package FromFlatOpcDocumentCore (System.Xml.Linq.XDocument flatOpcDocument, System.IO.Packaging.Package package);
protected static System.IO.Packaging.Package FromFlatOpcDocumentCore (System.Xml.Linq.XDocument document, System.IO.Packaging.Package package);
static member FromFlatOpcDocumentCore : System.Xml.Linq.XDocument * System.IO.Packaging.Package -> System.IO.Packaging.Package
static member FromFlatOpcDocumentCore : System.Xml.Linq.XDocument * System.IO.Packaging.Package -> System.IO.Packaging.Package
Protected Shared Function FromFlatOpcDocumentCore (flatOpcDocument As XDocument, package As Package) As Package
Protected Shared Function FromFlatOpcDocumentCore (document As XDocument, package As Package) As Package
参数
- flatOpcDocumentdocument
- XDocument
平面 OPC 格式的文档。
返回
包含 Package OpenXml 包的 。
适用于
FromFlatOpcDocumentCore(XDocument, Stream)
protected static System.IO.Stream FromFlatOpcDocumentCore (System.Xml.Linq.XDocument flatOpcDocument, System.IO.Stream stream);
protected static System.IO.Stream FromFlatOpcDocumentCore (System.Xml.Linq.XDocument document, System.IO.Stream stream);
static member FromFlatOpcDocumentCore : System.Xml.Linq.XDocument * System.IO.Stream -> System.IO.Stream
static member FromFlatOpcDocumentCore : System.Xml.Linq.XDocument * System.IO.Stream -> System.IO.Stream
Protected Shared Function FromFlatOpcDocumentCore (flatOpcDocument As XDocument, stream As Stream) As Stream
Protected Shared Function FromFlatOpcDocumentCore (document As XDocument, stream As Stream) As Stream
参数
- flatOpcDocumentdocument
- XDocument
平面 OPC 格式的文档。
返回
包含 Stream OpenXml 包的 。
适用于
FromFlatOpcDocumentCore(XDocument, String)
将 XDocument 平面 OPC 格式的 转换为存储在文件中的 OpenXml 包。
protected static string FromFlatOpcDocumentCore (System.Xml.Linq.XDocument flatOpcDocument, string path);
protected static string FromFlatOpcDocumentCore (System.Xml.Linq.XDocument document, string path);
static member FromFlatOpcDocumentCore : System.Xml.Linq.XDocument * string -> string
static member FromFlatOpcDocumentCore : System.Xml.Linq.XDocument * string -> string
Protected Shared Function FromFlatOpcDocumentCore (flatOpcDocument As XDocument, path As String) As String
Protected Shared Function FromFlatOpcDocumentCore (document As XDocument, path As String) As String
参数
- flatOpcDocumentdocument
- XDocument
平面 OPC 格式的文档。
- path
- String
要在其中存储 OpenXml 包的文件的路径和文件名。
返回
包含 OpenXml 包的文件的路径和文件名。