HelpPageSampleGenerator Methods

The following tables list the members exposed by the HelpPageSampleGenerator type.

Methods
 
Name Description
Public method Equals(Object) Bestimmt, ob das angegebene Objekt mit dem aktuellen Objekt identisch ist. (inherited from Object).
Protected method Finalize Gibt einem Objekt Gelegenheit zu dem Versuch, Ressourcen freizugeben und andere Bereinigungen durchzuführen, bevor es von der Garbage Collection freigegeben wird. (inherited from Object).
Public method GetActionSample(string, string, IEnumerable<String>, Type, MediaTypeFormatter, MediaTypeHeaderValue, SampleDirection) Search for samples that are provided directly through ActionSamples.
Public method GetHashCode Fungiert als die Standardhashfunktion. (inherited from Object).
Public method GetSample(ApiDescription, SampleDirection) Gets the request or response body samples.
Public method GetSampleObject(Type) Gets the sample object that will be serialized by the formatters. First, it will look at the SampleObjects. If no sample object is found, it will try to create one using DefaultSampleObjectFactory (which wraps an ObjectGenerator) and other factories in SampleObjectFactories.
Public method GetSampleRequests(ApiDescription) Gets the request body samples for a given ApiDescription.
Public method GetSampleResponses(ApiDescription) Gets the response body samples for a given ApiDescription.
Public method GetType Ruft den Type der aktuellen Instanz ab. (inherited from Object).
Protected method MemberwiseClone Erstellt eine flache Kopie des aktuellen Object. (inherited from Object).
Public method ResolveHttpRequestMessageType(ApiDescription) Resolves the actual type of ObjectContent<T> passed to the HttpRequestMessage in an action.
Public method ResolveType(ApiDescription, string, string, IEnumerable<String>, SampleDirection, out Collection<MediaTypeFormatter>) Resolves the type of the action parameter or return value when HttpRequestMessage or HttpResponseMessage is used.
Public method ToString Gibt eine Zeichenfolge zurück, die das aktuelle Objekt darstellt. (inherited from Object).
Public method WriteSampleObjectUsingFormatter(MediaTypeFormatter, object, Type, MediaTypeHeaderValue) Writes the sample object using formatter.
Top
Name Description
Public extension method NameOf(this object) (Defined by NLogHelper).
Top

In this article

Definition