Returns a new attribute. If the value is null, the value is changed
to string.Empty (XAttribute doesn't support null values!).
Declaration Syntax
C# | Visual Basic |
public static XAttribute NewAttribute( string name, Object value )
Public Shared Function NewAttribute ( _ name As String, _ value As Object _ ) As XAttribute
Return Value
Attribute object