ImageGeneratorBuilderImageGeneratorExtensions.AsBuilder 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.
Creates a new ImageGeneratorBuilder using innerGenerator
as its inner generator.
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::AI::ImageGeneratorBuilder ^ AsBuilder(Microsoft::Extensions::AI::IImageGenerator ^ innerGenerator);
public static Microsoft.Extensions.AI.ImageGeneratorBuilder AsBuilder(this Microsoft.Extensions.AI.IImageGenerator innerGenerator);
static member AsBuilder : Microsoft.Extensions.AI.IImageGenerator -> Microsoft.Extensions.AI.ImageGeneratorBuilder
<Extension()>
Public Function AsBuilder (innerGenerator As IImageGenerator) As ImageGeneratorBuilder
Parameters
- innerGenerator
- IImageGenerator
The generator to use as the inner generator.
Returns
The new ImageGeneratorBuilder instance.
Exceptions
innerGenerator
is null
.
Remarks
This method is equivalent to using the ImageGeneratorBuilder constructor directly, specifying innerGenerator
as the inner generator.