ConfigurationBase.GetAndRemoveStringAttribute Method
Remove the specified attribute from the specified node.
Namespace: Microsoft.Web.Services2.Configuration
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim node As XmlNode
Dim attrib As String
Dim fRequired As Boolean
Dim val As String
Dim returnValue As XmlNode
returnValue = ConfigurationBase.GetAndRemoveStringAttribute(node, attrib, fRequired, val)
Syntax
'Declaration
Public Shared Function GetAndRemoveStringAttribute( _
ByVal node As XmlNode, _
ByVal attrib As String, _
ByVal fRequired As Boolean, _
ByRef val As String _
) As XmlNode
public static XmlNode GetAndRemoveStringAttribute(
XmlNode node,
string attrib,
bool fRequired,
ref string val
);
public: static XmlNode^ GetAndRemoveStringAttribute(
XmlNode^ node,
String^ attrib,
Boolean fRequired,
&String^ val
);
public static XmlNode GetAndRemoveStringAttribute(
XmlNode node,
System.String attrib,
boolean fRequired,
/*ref*/System.String val
);
public static function GetAndRemoveStringAttribute(
node : XmlNode,
attrib : String,
fRequired : Boolean,
val : String
) : XmlNode;
Parameters
- node
An XmlNode containing the attrib to be removed.
- attrib
An attribute to be removed.
- fRequired
A boolean variable indicating whether the attribute is required.
- val
A string containing the resulted node.
Return Value
An XmlNode with the specified attribute being removed.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentNullException | nodeis null. |
| System.Configuration.ConfigurationException | frequiredis true and a matching attrib is not found in the node . |
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 XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
ConfigurationBase Class
Microsoft.Web.Services2.Configuration Namespace