HelpPageSampleGenerator.SampleObjectFactories Property

Gets factories for the objects that the supported formatters will serialize as samples. Processed in order, stopping when the factory successfully returns a non-<default> object.
<SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
            Justification = "This is an appropriate nesting of generic types")> _ 
Public Property SampleObjectFactories() As IList(Of Func(Of HelpPageSampleGenerator, Type, Object)) 
Get 
This language is not supported or no code example is available.
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
            Justification = "This is an appropriate nesting of generic types")] 
public IList<Func<HelpPageSampleGenerator, Type, object>> SampleObjectFactories {get;}
This language is not supported or no code example is available.
[SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures",
            Justification = "This is an appropriate nesting of generic types")] 
public:  
property IList<Func<HelpPageSampleGenerator^, Type^, object^>^>^ SampleObjectFactories { 
IList<Func<HelpPageSampleGenerator^, Type^, object^>^>^ get( ); 
}
This language is not supported or no code example is available.
JScript does not support generic types and methods.
This language is not supported or no code example is available.

Property Value

IList<Func<HelpPageSampleGenerator, Type, object>>
Remarks
 
Collection includes just GenerateObject initially. Use
SampleObjectFactories.Insert(0, func)					
to provide an override and
SampleObjectFactories.Add(func)					
to provide a fallback.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition