ManagementConfigurationPath.CreateFileConfigurationPath 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.
Creates a new file configuration path.
Overloads
CreateFileConfigurationPath(String, String) |
Creates a new file configuration path by using the specified application path. |
CreateFileConfigurationPath(String, String, String) |
Creates a new file configuration path by using the specified Web site name and application path. |
CreateFileConfigurationPath(String, String)
Creates a new file configuration path by using the specified application path.
public:
static Microsoft::Web::Management::Server::ManagementConfigurationPath ^ CreateFileConfigurationPath(System::String ^ applicationPath, System::String ^ filePath);
public static Microsoft.Web.Management.Server.ManagementConfigurationPath CreateFileConfigurationPath (string applicationPath, string filePath);
static member CreateFileConfigurationPath : string * string -> Microsoft.Web.Management.Server.ManagementConfigurationPath
Public Shared Function CreateFileConfigurationPath (applicationPath As String, filePath As String) As ManagementConfigurationPath
Parameters
- applicationPath
- String
The application path.
- filePath
- String
The file path.
Returns
A ManagementConfigurationPath object.
Remarks
For more information, see the example for the CreateFileConfigurationPath(String, String, String) overload.
Applies to
CreateFileConfigurationPath(String, String, String)
Creates a new file configuration path by using the specified Web site name and application path.
public:
static Microsoft::Web::Management::Server::ManagementConfigurationPath ^ CreateFileConfigurationPath(System::String ^ siteName, System::String ^ applicationPath, System::String ^ filePath);
public static Microsoft.Web.Management.Server.ManagementConfigurationPath CreateFileConfigurationPath (string siteName, string applicationPath, string filePath);
static member CreateFileConfigurationPath : string * string * string -> Microsoft.Web.Management.Server.ManagementConfigurationPath
Public Shared Function CreateFileConfigurationPath (siteName As String, applicationPath As String, filePath As String) As ManagementConfigurationPath
Parameters
- siteName
- String
The name of the Web site.
- applicationPath
- String
The application path.
- filePath
- String
The file path.
Returns
A ManagementConfigurationPath object.
Examples
The following example creates a new file configuration path and starts configuration management.
void testStrtConfgMgntFile(IServiceProvider sp) {
doStrtConfgMgntFile(sp, "rws", "/rAp2", "Bin");
}
bool doStrtConfgMgntFile(IServiceProvider sp, string siteNm, string appPath, string filePath) {
Connection con = (Connection)sp.GetService(typeof(Connection));
ManagementConfigurationPath newConfigurationPath = ManagementConfigurationPath
.CreateFileConfigurationPath(siteNm, appPath, filePath);
bool b = con.StartConfigurationManagement(newConfigurationPath);
if (b != true)
ShowMessage("Failure: \n CreateFileConfigurationPath for site "
+ siteNm, "Error");
return b;
}