public static (string MediaType, Stream Data)? LoadIcon(
this IAuthenticationProvider provider
)<ExtensionAttribute>
Public Shared Function LoadIcon (
provider As IAuthenticationProvider
) As (MediaType As String, Data As Stream)?public:
[ExtensionAttribute]
static Nullable<ValueTuple<String^, Stream^>> LoadIcon(
IAuthenticationProvider^ provider
)Gemstone.Security.AuthenticationProviders.AuthenticationProviderExtensions.LoadIcon = function(provider);Supported file types are jpg, png, gif, svg, and webp.
For a hypothetical ExampleProvider in the Gemstone.Example namespace, the embedded resource name for a jpg icon would be Gemstone.Example.ExampleProvider.jpg.
Expect that icons will be rendered in an approximately square space, 32 pixels tall. Therefore, a good target size would be 32x32, but it can be a bit wider or narrower.