AudioSession.GetIcon C# (CSharp) Méthode

GetIcon() private méthode

private GetIcon ( ) : Icon,
Résultat Icon,
        private Icon GetIcon()
        {
            if (string.IsNullOrWhiteSpace(IconPath))
                return null;
            var index = ParseIconLocationPath(IconPath, out var path);
            // note this may only work if the OS bitness is the same as this process bitness
            var hIcon = ExtractIcon(IntPtr.Zero, path, index);
            return hIcon == IntPtr.Zero ? null : Icon.FromHandle(hIcon);
        }
        public override string ToString() => DisplayName;