Performs a find/replace operation for host names. The find/replace operation is performed
on this object and all of its decendants (if it has any descendants).
This method only searches properties that may be DataSources and/or FileNames.
Namespace: Ico.GwxAssembly: GwxConfigCore (in GwxConfigCore.dll) Version: 10.97.212.0 (10.97.212.00)
Syntax
C# |
---|
public int ReplaceHost(
string oldHostName,
string newHostName,
bool matchCase,
bool matchWholeWord,
bool searchHiddenText
) |
Visual Basic |
---|
Public Function ReplaceHost ( _
oldHostName As String, _
newHostName As String, _
matchCase As Boolean, _
matchWholeWord As Boolean, _
searchHiddenText As Boolean _
) As Integer |
JScript |
---|
public function ReplaceHost(
oldHostName : String,
newHostName : String,
matchCase : boolean,
matchWholeWord : boolean,
searchHiddenText : boolean
) : int |
Parameters
- oldHostName
- Type: System..::..String
The hostname to find.
- newHostName
- Type: System..::..String
The new hostname to replace oldHostName.
- matchCase
- Type: System..::..Boolean
True if the found text must have matching character casing.
- matchWholeWord
- Type: System..::..Boolean
True if only whole words should be matched.
- searchHiddenText
- Type: System..::..Boolean
True if hidden properties should be included in the search.
Return Value
The number of replacements made.
See Also