MonobjcMonobjc Documented Class Library
InitWithNameStringValue Method (name, string)
NamespacesMonobjc.FoundationNSXMLElementInitWithNameStringValue(NSString, NSString)

Returns an NSXMLElement object initialized with a specified name and a single text-node child containing a specified value.

Original signature is '- (id)initWithName:(NSString *)name stringValue:(NSString *)string'

Available in Mac OS X v10.4 and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithNameStringValue(
	NSString name,
	NSString string
)
Public Overridable Function InitWithNameStringValue ( _
	name As NSString, _
	string As NSString _
) As Id
public:
virtual Id^ InitWithNameStringValue(
	NSString^ name, 
	NSString^ string
)
Parameters
name (NSString)
A string specifying the name of the element.
string (NSString)
The string value of the receiver's text node.
Return Value
The initialized NSXMLElement object or nil if initialization did not succeed.
Version Information
  • Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)

Assembly: Monobjc.Foundation (Module: Monobjc.Foundation)