HelpPageSampleGenerator.GetSampleObject Method
<SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
Justification = "Even if all items in SampleObjectFactories throw, problem will be visible as missing sample.")> _
Public Overridable Function GetSampleObject( _
ByVal type As Type _
) As Object
This language is not supported or no code example is available.
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
Justification = "Even if all items in SampleObjectFactories throw, problem will be visible as missing sample.")]
public virtual object GetSampleObject(
Type type
)
This language is not supported or no code example is available.
[SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes",
Justification = "Even if all items in SampleObjectFactories throw, problem will be visible as missing sample.")]
public:
virtual object^ GetSampleObject(
Type^ type
)
This language is not supported or no code example is available.
public
SuppressMessage("Microsoft.Design", "CA1031:DoNotCatchGeneralExceptionTypes", Justification = "Even if all items in SampleObjectFactories throw, problem will be visible as missing sample.")
function GetSampleObject(
type : Type
) : object;
This language is not supported or no code example is available.
Parameters
- type
- Type
The type.
Return Value
objectThe sample object.