# ScreenCaptureSourceInfo (/zh-CN/api-reference/rtc/csharp-windows/class-screencapturesourceinfo)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="class_screencapturesourceinfo__prototype"></a>

```csharp
public class ScreenCaptureSourceInfo
    {
        public ScreenCaptureSourceType type;
        public long sourceId;
        public string sourceName;
        public ThumbImageBuffer thumbImage;
        public ThumbImageBuffer iconImage;
        public string processPath;
        public string sourceTitle;
        public bool primaryMonitor;
        public Rectangle position;
        public long sourceDisplayId;
    };
```

<a id="class_screencapturesourceinfo__parameters"></a>

## 属性 [#属性]

<ParameterList>
<a id="type"></a>
<Parameter name="type">

共享目标的类型。详见 [ScreenCaptureSourceType](/zh-CN/api-reference/rtc/csharp-windows/enum-screencapturesourcetype)。

</Parameter>
<a id="sourceid"></a>
<Parameter name="sourceId">

对于窗口，表示窗口 ID（Window ID）；对于屏幕，表示屏幕 ID（Display ID）。

</Parameter>
<a id="sourcename"></a>
<Parameter name="sourceName">

窗口或屏幕的名称。UTF-8 编码。

</Parameter>
<a id="thumbimage"></a>
<Parameter name="thumbImage">

缩略图的图像内容。详见。

</Parameter>
<a id="iconimage"></a>
<Parameter name="iconImage">

图标的图像内容。详见。

</Parameter>
<a id="processpath"></a>
<Parameter name="processPath">

窗口所属的进程。UTF-8 编码。

</Parameter>
<a id="sourcetitle"></a>
<Parameter name="sourceTitle">

窗口标题。UTF-8 编码。

</Parameter>
<a id="primarymonitor"></a>
<Parameter name="primaryMonitor">

屏幕是否为主显示屏：

- `true`: 屏幕为主显示屏。
- `false`: 屏幕不是主显示屏。

</Parameter>
<a id="position"></a>
<Parameter name="position">

窗口相对于整个屏幕空间（包含所有可共享屏幕）的位置。

</Parameter>
<a id="sourcedisplayid"></a>
<Parameter name="sourceDisplayId">

(仅适用于 Windows) 窗口所在的屏幕 ID。如果窗口为跨屏幕显示，则表示与该窗口相交面积最大的屏幕 ID。如果窗口位于可见屏幕之外，则该成员的值为 -2。

</Parameter>
</ParameterList>
