次の方法で共有


TableAttribute クラス

定義

パラメーターを Azure Table または Table エンティティにバインドするために使用される属性。

[Microsoft.Azure.WebJobs.ConnectionProvider(typeof(Microsoft.Azure.WebJobs.StorageAccountAttribute))]
[Microsoft.Azure.WebJobs.Description.Binding]
[System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue)]
public class TableAttribute : Attribute, Microsoft.Azure.WebJobs.IConnectionProvider
[<Microsoft.Azure.WebJobs.ConnectionProvider(typeof(Microsoft.Azure.WebJobs.StorageAccountAttribute))>]
[<Microsoft.Azure.WebJobs.Description.Binding>]
[<System.AttributeUsage(System.AttributeTargets.Parameter | System.AttributeTargets.ReturnValue)>]
type TableAttribute = class
    inherit Attribute
    interface IConnectionProvider
Public Class TableAttribute
Inherits Attribute
Implements IConnectionProvider
継承
TableAttribute
属性
Microsoft.Azure.WebJobs.ConnectionProviderAttribute Microsoft.Azure.WebJobs.Description.BindingAttribute AttributeUsageAttribute
実装
Microsoft.Azure.WebJobs.IConnectionProvider

注釈

テーブル名のみを指定すると、属性はテーブルにバインドされ、メソッド パラメーターの型は次のいずれかになります。

  • TableClient
  • IQueryable<T> (ここで T は ITableEntity を実装します)
テーブル名、パーティション キー、および行キーを指定すると、属性はテーブル エンティティにバインドされ、メソッド パラメーターの型は次のいずれかになります。
  • ITableEntity
  • ITableEntity を実装していないユーザー定義型 (単純型の場合は文字列としてシリアル化され、複合型の場合は JSON)

コンストラクター

TableAttribute(String)

TableAttribute クラスの新しいインスタンスを初期化します。

TableAttribute(String, String)

TableAttribute クラスの新しいインスタンスを初期化します。

TableAttribute(String, String, String)

TableAttribute クラスの新しいインスタンスを初期化します。

プロパティ

Connection

Azure Storage または Azure Cosmos 接続文字列を含むアプリ設定名を取得または設定します。

Filter

OData テーブル フィルターを取得または設定します。 RowKey このプロパティを設定する場合は null にする必要があります。 たとえば、エンティティ内の LastName プロパティと FirstName プロパティをフィルター処理するには、次のように Filter を設定します。 Filter = "LastName%20eq%20'Smith'%20and%20FirstName%20eq%20'John'"

OData フィルター文字列の構築の詳細については、「」を参照してください https://docs.microsoft.com/en-us/rest/api/storageservices/querying-tables-and-entities#constructing-filter-strings

PartitionKey

テーブル エンティティにバインドする場合は、エンティティのパーティション キーを取得します。

RowKey

テーブル エンティティにバインドする場合は、エンティティの行キーを取得します。

TableName

バインド先のテーブルの名前を取得します。

Take

プロパティを使用 Filter するときに含める要素の数を取得または設定します。 RowKey このプロパティを設定する場合は null にする必要があります。

適用対象