Skip to content

Conversation

@eNeRGy164
Copy link
Contributor

Fill out details for the System.Windows.Extensions NuGet package readme.

See #92228

@ghost ghost added community-contribution Indicates that the PR has been added by a community member needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 5, 2023
@ViktorHofer ViktorHofer added area-Microsoft.Win32 and removed needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners labels Nov 6, 2023
@ghost
Copy link

ghost commented Nov 6, 2023

Tagging subscribers to this area: @dotnet/area-microsoft-win32
See info in area-owners.md if you want to be subscribed.

Issue Details

Fill out details for the System.Windows.Extensions NuGet package readme.

See #92228

Author: eNeRGy164
Assignees: -
Labels:

area-Microsoft.Win32, community-contribution

Milestone: -

Comment on lines +47 to +71
### Displaying a Certificate Selection Dialog

```csharp
using System.Security.Cryptography.X509Certificates;

X509Store store = new X509Store(StoreName.My);
store.Open(OpenFlags.ReadOnly);

X509Certificate2Collection selectedCerts = X509Certificate2UI.SelectFromCollection(
store.Certificates,
"Select Certificate",
"Select a certificate from the following list:",
X509SelectionFlag.SingleSelection
);
store.Close();

if (selectedCerts.Count == 0)
{
Console.WriteLine("No certificate selected.");
}
else
{
Console.WriteLine($"Certificate selected: {selectedCerts[0].Subject}");
}
```
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dotnet/area-system-security please review this sample

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ping @dotnet/area-system-security. Please take a look at the sample above.

@ViktorHofer ViktorHofer deleted the branch dotnet:PackageReadmesContinued January 22, 2024 18:04
@github-actions github-actions bot locked and limited conversation to collaborators Feb 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Microsoft.Win32 community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants