共用方式為


HelpPageSampleGenerator.GetSampleObject(Type) Method

Definition

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 ObjectGenerator.

public virtual object GetSampleObject (Type type);
abstract member GetSampleObject : Type -> obj
override this.GetSampleObject : Type -> obj
Public Overridable Function GetSampleObject (type As Type) As Object

Parameters

type
Type

The type.

Returns

The sample object.

Applies to