ESRI.ArcGIS.ADF
SetSingleProperty Method
See Also  Send comments on this topic.
ESRI.ArcGIS.ADF Namespace > IISHelper Class : SetSingleProperty Method




iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
virtualDirectoryName
The name of the virtual directory.
propertyName
The property name.
newValue
The new value of the property.
status
The output status message.
Set a single propery of the virtual directory.

Syntax

Visual Basic (Declaration) 
Public Shared Function SetSingleProperty( _
   ByVal iisLocation As String, _
   ByVal virtualDirectoryName As String, _
   ByVal propertyName As String, _
   ByVal newValue As Object, _
   ByRef status As String _
) As Boolean
Visual Basic (Usage)Copy Code
Dim iisLocation As String
Dim virtualDirectoryName As String
Dim propertyName As String
Dim newValue As Object
Dim status As String
Dim value As Boolean
 
value = IISHelper.SetSingleProperty(iisLocation, virtualDirectoryName, propertyName, newValue, status)
C# 
public static bool SetSingleProperty( 
   string iisLocation,
   string virtualDirectoryName,
   string propertyName,
   object newValue,
   out string status
)

Parameters

iisLocation
The Active Directory path of the IIS website. Use GetIISLocation method to get the path.
virtualDirectoryName
The name of the virtual directory.
propertyName
The property name.
newValue
The new value of the property.
status
The output status message.

Return Value

true if setting property value succeeds, false if not.

See Also

© 2010 All Rights Reserved.