Parameters
- stream
- Stream which contains the profile.
- disposeStreamAfterUse
- A value indicating whether the stream must be disposed when it is not necessary any more.
Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5