共用方式為


IniConfigurationExtensions.AddIniStream(IConfigurationBuilder, Stream) 方法

定義

將 INI 組態來源新增至 builder

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Configuration::IConfigurationBuilder ^ AddIniStream(Microsoft::Extensions::Configuration::IConfigurationBuilder ^ builder, System::IO::Stream ^ stream);
public static Microsoft.Extensions.Configuration.IConfigurationBuilder AddIniStream (this Microsoft.Extensions.Configuration.IConfigurationBuilder builder, System.IO.Stream stream);
static member AddIniStream : Microsoft.Extensions.Configuration.IConfigurationBuilder * System.IO.Stream -> Microsoft.Extensions.Configuration.IConfigurationBuilder
<Extension()>
Public Function AddIniStream (builder As IConfigurationBuilder, stream As Stream) As IConfigurationBuilder

參數

builder
IConfigurationBuilder

要新增的目標 IConfigurationBuilder

stream
Stream

要從中讀取 INI 組態資料的 Stream

傳回

IConfigurationBuilder

適用於