Share via


WebConfigDocument.Load Method (String, String)

 

Loads a given fileName from a given path and returns a WebConfigDocument or null if file is not found or is invalid.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Config
Assembly:  Microsoft.WindowsAzure.Mobile.Service.WebHost (in Microsoft.WindowsAzure.Mobile.Service.WebHost.dll)

Syntax

public static WebConfigDocument Load(
    string path,
    string fileName
)
public:
static WebConfigDocument^ Load(
    String^ path,
    String^ fileName
)
static member Load : 
        path:string *
        fileName:string -> WebConfigDocument
Public Shared Function Load (
    path As String,
    fileName As String
) As WebConfigDocument

Parameters

  • path
    Type: System.String

    The path from where to load the config file.

  • fileName
    Type: System.String

    The name of the config file to load.

Return Value

Type: Microsoft.WindowsAzure.Mobile.Service.Config.WebConfigDocument

A WebConfigDocument or null if file could not be read.

See Also

WebConfigDocument Class
Microsoft.WindowsAzure.Mobile.Service.Config Namespace

Return to top