このクラスにはこれらの属性があり、クラス内からそれらにアクセスする方法を考えています。ServedClassName
はカスタム属性であり、実際にアクセスしようとしているものです。
[Guid("24889af6-e174-460b-ab52-7fb5a925926e")]
[ServedClassName("ASCOM ProxyClient Telescope")]
[ProgId("ASCOM.DeviceProxyClient.Telescope")]
[ClassInterface(ClassInterfaceType.None)]
public class Telescope : ReferenceCountedObjectBase, ITelescopeV3
ProgID にアクセスするには、次を使用します。Marshal.GenerateProgIdForType(this.GetType());