Performs a synchronous load of the specified URL request.
Original signature is '+ (NSData *)sendSynchronousRequest:(NSURLRequest *)request returningResponse:(NSURLResponse **)response error:(NSError **)error'
Available in Mac OS X v10.2 with Safari 1.0 installed and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSData SendSynchronousRequestReturningResponseError( NSURLRequest request, out NSURLResponse response, out NSError error )
Public Shared Function SendSynchronousRequestReturningResponseError ( _ request As NSURLRequest, _ <OutAttribute> ByRef response As NSURLResponse, _ <OutAttribute> ByRef error As NSError _ ) As NSData
public: static NSData^ SendSynchronousRequestReturningResponseError( NSURLRequest^ request, [OutAttribute] NSURLResponse^% response, [OutAttribute] NSError^% error )
Parameters
- request (NSURLRequest)
- The URL request to load. The request object is deep-copied as part of the initialization process. Changes made to request after this method returns do not affect the request that is used for the loading process.
- response (NSURLResponse%)
- Out parameter for the URL response returned by the server.
- error (NSError%)
- Out parameter used if an error occurs while processing the request. May be NULL.
Return Value
The downloaded data for the URL request. Returns nil if a connection could not be created or if the download fails.
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)