Share via


LoadXmlHelpers.ReadXmlFromProvider Method

Reads the specified XML from the provider.

Namespace: Microsoft.ConfigurationManagement.ManagementProvider
Assembly: Microsoft.ConfigurationManagement.ManagementProvider (in microsoft.configurationmanagement.managementprovider.dll)

Usage

'Usage
Dim xmlFileName As String
Dim ignoreExtensions As Boolean
Dim reader As StreamReader
Dim returnValue As String

returnValue = LoadXmlHelpers.ReadXmlFromProvider(xmlFileName, ignoreExtensions, reader)

Syntax

'Declaration
Public Shared Function ReadXmlFromProvider ( _
    xmlFileName As String, _
    ignoreExtensions As Boolean, _
    <OutAttribute> ByRef reader As StreamReader _
) As String
public static string ReadXmlFromProvider (
    string xmlFileName,
    bool ignoreExtensions,
    out StreamReader reader
)
public:
static String^ ReadXmlFromProvider (
    String^ xmlFileName, 
    bool ignoreExtensions, 
    [OutAttribute] StreamReader^% reader
)
public static String ReadXmlFromProvider (
    String xmlFileName, 
    boolean ignoreExtensions, 
    /** @attribute OutAttribute() */ /** @ref */ StreamReader reader
)

Parameters

  • xmlFileName
    [in] Name of the XML file.
  • ignoreExtensions
    [in] true to ignore XML extensions.
  • reader
    [out] Reference to a System.IO.StreamReader object that represents the XML reader.

Return Value

The next character from the input stream that is represented as an Int32 data type, or -1 if no more characters are available.

Exceptions

Exception type Condition
FileNotFoundException

The requested XML file could not be found.

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.

Platforms

Development Platforms

Windows Server 2003, Windows Vista

Target Platforms

Windows Server 2003,Windows Vista

See Also

Reference

LoadXmlHelpers Class
LoadXmlHelpers Members
Microsoft.ConfigurationManagement.ManagementProvider Namespace