你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

EventGridSasBuilder Class

Definition

This EventGridSasBuilder is used to generate a Shared Access Signature (SAS) for an Azure Event Grid topic.

public class EventGridSasBuilder
type EventGridSasBuilder = class
Public Class EventGridSasBuilder
Inheritance
EventGridSasBuilder

Constructors

Name Description
EventGridSasBuilder(Uri, DateTimeOffset)

Initializes a new instance of the EventGridSasBuilder class.

Properties

Name Description
ApiVersion

Gets or sets the service version to use when generating the shared access signature.

Endpoint

Gets or sets the endpoint to generate a shared access signature for.

ExpiresOn

Gets or sets the time at which the shared access signature should expire.

Methods

Name Description
GenerateSas(AzureKeyCredential)

Generates a shared access signature that can be used to authenticate with a topic. The signature can be used as the input to the AzureSasCredential(String) constructor. This credential can then be passed to the EventGridPublisherClient(Uri, AzureSasCredential, EventGridPublisherClientOptions) constructor.

Applies to