HelpPageSampleGenerator.GetSampleObject(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.