This documentation is archived and is not being maintained.

WebOperationContext Methods

The WebOperationContext type exposes the following members.

  NameDescription
Public method Attach Attaches the current WebOperationContext instance to the specified OperationContext instance.
Public method CreateAtom10Response(ServiceDocument) Creates a message formatted according to the Atom 1.0 specification with the specified content.
Public method CreateAtom10Response(SyndicationFeed) Creates a message formatted according to the Atom 1.0 specification with the specified content.
Public method CreateAtom10Response(SyndicationItem) Creates a message formatted according to the Atom 1.0 specification with the specified content.
Public method CreateJsonResponse<T>(T) Creates a JSON formatted message.
Public method CreateJsonResponse<T>(T, DataContractJsonSerializer) Creates a JSON formatted message.
Public method CreateStreamResponse(Action<Stream>, String) Creates a stream formatted message.
Public method CreateStreamResponse(Stream, String) Creates a stream formatted message.
Public method CreateStreamResponse(StreamBodyWriter, String) Creates a stream formatted message.
Public method CreateTextResponse(String) Creates a text formatted response message.
Public method CreateTextResponse(Action<TextWriter>, String) Creates a text formatted message
Public method CreateTextResponse(String, String) Creates a text formatted message.
Public method CreateTextResponse(Action<TextWriter>, String, Encoding) Creates a text formatted message
Public method CreateTextResponse(String, String, Encoding) Creates a text formatted message.
Public method CreateXmlResponse(XDocument) Creates an XML formatted message.
Public method CreateXmlResponse(XElement) Creates an XML formatted message.
Public method CreateXmlResponse<T>(T) Creates an XML formatted message.
Public method CreateXmlResponse<T>(T, XmlObjectSerializer) Creates an XML formatted message.
Public method CreateXmlResponse<T>(T, XmlSerializer) Creates an XML formatted message.
Public method Detach Detaches the current WebOperationContext instance from the specified OperationContext instance.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetUriTemplate Gets the URI template associated with the specified operation.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top
Show: