你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

HelpPageSampleGenerator.GetSampleObject(Type) 方法

定义

获取将由格式化程序序列化的示例对象。 首先,它将查看 SampleObjects。 如果未找到示例对象,它将尝试使用 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

参数

type
Type

类型。

返回

示例对象。

适用于