System.Tether.AppProfile.TRemoteResource
Delphi
TRemoteResource = class(TCustomRemoteItem)
C++
class PASCALIMPLEMENTATION DECLSPEC_DRTTI TRemoteResource : public TCustomRemoteItem
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
class | public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | System.Tether.AppProfile |
説明
リモート プロファイルにより共有されるリソースを表します。 TLocalResource も参照してください。
TRemoteResource は TCustomRemoteItem のサブクラスで、TResourceValue のインスタンスをラップするものです。Value プロパティを使用すると、このラップされたリソースを設定できます。ResType は、リソース値が標準データ型かストリームかを示します。
リモート リソースはコレクション リソースです。リモート リソースを作成する際には、そのリモート リソースを所有する親の TCollection を指定する必要があります。
リモート リソースには、そのリソースを共有するプロファイル(Profile プロパティ)内でそのリソースを一意に識別する名前(Name プロパティ)と、そのリソースを説明するヒント(Hint プロパティ)が用意されています。
リモート リソースで Broadcast を呼び出すと、そのリソースに対する変更をいつでもリモート プロファイルに通知できます。また、NotifyUpdates を True
にして、リソースの値が変化したときの自動通知を有効にすることもできます。
IsPublic は、このリモート リソースをリモート プロファイルと共有する必要があるかどうかを示し、IsTemp は、このリモート リソースがリモート プロファイルにより何度も読み取られることを想定しているかどうかを示します。デフォルトでは、リモート リソースは公開されており(IsPublic が True
)、永続的です(IsTemp が False
)。アプリケーション プロファイルでは、文字列の送信やストリームの受信などのデータの一時的な交換には、保護された(IsPublic が False
)一時的な(IsTemp が True
)リモート リソースを使用します。
Kind は、このリモート リソースの値がそのリソースを共有しているプロファイル上で定義されている(デフォルト)か、別のリモート リソースからミラーされているかを示します。リモート リソースの値がミラーされている(Kind が TTetheringRemoteKind.Mirror)場合、その値は、リモート プロファイルにより共有されている別のリモート リソースから取得されます。リモート リソースの Kind は TTetheringRemoteKind.Shared でなければなりません。
関連項目
- System.Tether.AppProfile.TRemoteResource.Create
- System.Tether.AppProfile.TRemoteResource.Destroy
- System.Tether.AppProfile.TRemoteResource.Value
- System.Tether.AppProfile.TRemoteResource.ResType
- System.Tether.AppProfile.TRemoteResource.ToBytes
- System.Tether.AppProfile.TRemoteResource.ToJsonString
- System.Tether.AppProfile.TRemoteResource.UpdateValue
- System.Tether.AppProfile.TCustomRemoteItem.Broadcast
- System.Tether.AppProfile.TCustomRemoteItem.Name
- System.Tether.AppProfile.TCustomRemoteItem.Hint
- System.Tether.AppProfile.TCustomRemoteItem.IsPublic
- System.Tether.AppProfile.TCustomRemoteItem.IsTemp
- System.Tether.AppProfile.TCustomRemoteItem.ItemType
- System.Tether.AppProfile.TCustomRemoteItem.Kind
- System.Tether.AppProfile.TCustomRemoteItem.NotifyUpdates
- System.Tether.AppProfile.TCustomRemoteItem.Profile
- System.Tether.AppProfile.TTetheringAppProfile
- System.Tether.AppProfile.TRemoteAction
- BDShoppingList サンプル
- MediaPlayer サンプル
- PhotoWall サンプル