ConfigurationBase.GetAndRemoveAttribute 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 returnValue As XmlNode
returnValue = ConfigurationBase.GetAndRemoveAttribute(node, attrib, fRequired)
Syntax
'Declaration
Public Shared Function GetAndRemoveAttribute( _
ByVal node As XmlNode, _
ByVal attrib As String, _
ByVal fRequired As Boolean _
) As XmlNode
public static XmlNode GetAndRemoveAttribute(
XmlNode node,
string attrib,
bool fRequired
);
public: static XmlNode^ GetAndRemoveAttribute(
XmlNode^ node,
String^ attrib,
Boolean fRequired
);
public static XmlNode GetAndRemoveAttribute(
XmlNode node,
System.String attrib,
boolean fRequired
);
public static function GetAndRemoveAttribute(
node : XmlNode,
attrib : String,
fRequired : Boolean
) : 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.
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