Share via


Geofence.Geoshape 屬性

定義

地理柵欄區域的圖形。

public:
 property IGeoshape ^ Geoshape { IGeoshape ^ get(); };
IGeoshape Geoshape();
public IGeoshape Geoshape { get; }
var iGeoshape = geofence.geoshape;
Public ReadOnly Property Geoshape As IGeoshape

屬性值

地理柵欄區域的圖形。

Windows 需求

應用程式功能
location

備註

這個屬性是唯讀的。 當您使用其中一個建構函式初始化地理柵欄時,必須設定地理柵欄的形狀。

此屬性的類型 IGeoshape是一個介面,可讓您支援地理柵欄的多個圖形。 目前唯一支援的圖形是 Geocircle,因此這是初始化地理柵欄時應該使用的類別。

適用於