OpenXmlReader.Create Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Create(Stream, Boolean, Boolean) |
Obsolete.
Creates an OpenXmlReader from the specified part stream and Boolean values. |
Create(OpenXmlPart, Boolean, Boolean) |
Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values. |
Create(Stream, Boolean) |
Obsolete.
Creates an OpenXmlReader from the specified part stream and Boolean values. |
Create(OpenXmlPart, Boolean) |
Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values. |
Create(Stream) |
Obsolete.
Creates an OpenXmlReader from the specified part stream. |
Create(OpenXmlPart) |
Creates an OpenXmlReader from the specified OpenXmlPart. |
Create(OpenXmlElement) |
Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree). |
Create(OpenXmlElement, Boolean) |
Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree). |
Create(Stream, Boolean, Boolean)
Caution
Use TypedOpenXmlPartReader instead.
Creates an OpenXmlReader from the specified part stream and Boolean values.
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes, bool ignoreWhitespace);
[System.Obsolete("Use TypedOpenXmlPartReader instead.", true)]
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes, bool ignoreWhitespace);
static member Create : System.IO.Stream * bool * bool -> DocumentFormat.OpenXml.OpenXmlReader
[<System.Obsolete("Use TypedOpenXmlPartReader instead.", true)>]
static member Create : System.IO.Stream * bool * bool -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (partStream As Stream, readMiscNodes As Boolean, ignoreWhitespace As Boolean) As OpenXmlReader
Parameters
- partStream
- Stream
The part stream.
- readMiscNodes
- Boolean
Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.
- ignoreWhitespace
- Boolean
Specify true to indicate to the reader to ignore insignificant white space. The default value is true.
Returns
- Attributes
Applies to
Create(OpenXmlPart, Boolean, Boolean)
Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values.
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart, bool readMiscNodes, bool ignoreWhitespace);
static member Create : DocumentFormat.OpenXml.Packaging.OpenXmlPart * bool * bool -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (openXmlPart As OpenXmlPart, readMiscNodes As Boolean, ignoreWhitespace As Boolean) As OpenXmlReader
Parameters
- openXmlPart
- OpenXmlPart
The OpenXmlPart to read.
- readMiscNodes
- Boolean
Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.
- ignoreWhitespace
- Boolean
Specify true to indicate to the reader to ignore insignificant white space. The default value is true.
Returns
The newly created OpenXmlReader.
Applies to
Create(Stream, Boolean)
Caution
Use TypedOpenXmlPartReader instead.
Creates an OpenXmlReader from the specified part stream and Boolean values.
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes);
[System.Obsolete("Use TypedOpenXmlPartReader instead.", true)]
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream, bool readMiscNodes);
static member Create : System.IO.Stream * bool -> DocumentFormat.OpenXml.OpenXmlReader
[<System.Obsolete("Use TypedOpenXmlPartReader instead.", true)>]
static member Create : System.IO.Stream * bool -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (partStream As Stream, readMiscNodes As Boolean) As OpenXmlReader
Parameters
- partStream
- Stream
The part stream.
- readMiscNodes
- Boolean
Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.
Returns
- Attributes
Applies to
Create(OpenXmlPart, Boolean)
Creates an OpenXmlReader from the specified OpenXmlPart and Boolean values.
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart, bool readMiscNodes);
static member Create : DocumentFormat.OpenXml.Packaging.OpenXmlPart * bool -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (openXmlPart As OpenXmlPart, readMiscNodes As Boolean) As OpenXmlReader
Parameters
- openXmlPart
- OpenXmlPart
The OpenXmlPart to read.
- readMiscNodes
- Boolean
Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.
Returns
The newly created OpenXmlReader.
Applies to
Create(Stream)
Caution
Use TypedOpenXmlPartReader instead.
Creates an OpenXmlReader from the specified part stream.
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream);
[System.Obsolete("Use TypedOpenXmlPartReader instead.", true)]
public static DocumentFormat.OpenXml.OpenXmlReader Create (System.IO.Stream partStream);
static member Create : System.IO.Stream -> DocumentFormat.OpenXml.OpenXmlReader
[<System.Obsolete("Use TypedOpenXmlPartReader instead.", true)>]
static member Create : System.IO.Stream -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (partStream As Stream) As OpenXmlReader
Parameters
- partStream
- Stream
The part stream.
Returns
- Attributes
Applies to
Create(OpenXmlPart)
Creates an OpenXmlReader from the specified OpenXmlPart.
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.Packaging.OpenXmlPart openXmlPart);
static member Create : DocumentFormat.OpenXml.Packaging.OpenXmlPart -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (openXmlPart As OpenXmlPart) As OpenXmlReader
Parameters
- openXmlPart
- OpenXmlPart
The OpenXmlPart to read.
Returns
The newly created OpenXmlReader.
Applies to
Create(OpenXmlElement)
Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree).
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.OpenXmlElement openXmlElement);
static member Create : DocumentFormat.OpenXml.OpenXmlElement -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (openXmlElement As OpenXmlElement) As OpenXmlReader
Parameters
- openXmlElement
- OpenXmlElement
The OpenXmlElement to read.
Returns
The newly created OpenXmlReader.
Applies to
Create(OpenXmlElement, Boolean)
Creates an OpenXmlReader from the OpenXmlElement (travel the DOM tree).
public static DocumentFormat.OpenXml.OpenXmlReader Create (DocumentFormat.OpenXml.OpenXmlElement openXmlElement, bool readMiscNodes);
static member Create : DocumentFormat.OpenXml.OpenXmlElement * bool -> DocumentFormat.OpenXml.OpenXmlReader
Public Shared Function Create (openXmlElement As OpenXmlElement, readMiscNodes As Boolean) As OpenXmlReader
Parameters
- openXmlElement
- OpenXmlElement
The OpenXmlElement to read.
- readMiscNodes
- Boolean
Specify false to indicate to the reader to skip all miscellaneous nodes. The default value is false.
Returns
The newly created OpenXmlReader.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應