MonobjcMonobjc Documented Class Library
InitWithURLMIMETypeExpectedContentLengthTextEncodingName Method (URL, MIMEType, length, name)
NamespacesMonobjc.FoundationNSURLResponseInitWithURLMIMETypeExpectedContentLengthTextEncodingName(NSURL, NSString, NSInteger, NSString)

Returns an initialized NSURLResponse object with the URL, MIME type, length, and text encoding set to given values.

Original signature is '- (id)initWithURL:(NSURL *)URL MIMEType:(NSString *)MIMEType expectedContentLength:(NSInteger)length textEncodingName:(NSString *)name'

Available in Mac OS X v10.2 with Safari 1.0 installed and later.

Declaration Syntax
C#Visual BasicVisual C++
public virtual Id InitWithURLMIMETypeExpectedContentLengthTextEncodingName(
	NSURL URL,
	NSString MIMEType,
	NSInteger length,
	NSString name
)
Public Overridable Function InitWithURLMIMETypeExpectedContentLengthTextEncodingName ( _
	URL As NSURL, _
	MIMEType As NSString, _
	length As NSInteger, _
	name As NSString _
) As Id
public:
virtual Id^ InitWithURLMIMETypeExpectedContentLengthTextEncodingName(
	NSURL^ URL, 
	NSString^ MIMEType, 
	NSInteger length, 
	NSString^ name
)
Parameters
URL (NSURL)
The URL for the new object.
MIMEType (NSString)
The MIME type.
length (NSInteger)
The expected content length.This value should be –1 if the expected length is undetermined
name (NSString)
The text encoding name. This value may be nil.
Return Value
An initialized NSURLResponse object with the URL set to URL, the MIME type set to MIMEType, length set to length, and text encoding name set to name.
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)