[]
Occurs when credentials are needed to access a data source. This event facilitates secure credential provision.
public event LocateCredentialsEventHandler LocateCredentials
Type | Description |
---|---|
LocateCredentialsEventHandler | Occurs when credentials are needed to access a data source. This event facilitates secure credential provision. |
This event is raised when accessing a data source requires authentication, and credentials are not available or need to be confirmed. It provides a secure way to request and apply credentials without hard-coding them into the report or application.
Handlers for this event can prompt the user for credentials, retrieve them from a secure store, or apply default credentials based on application logic.
It can be necessary for report preview. Use this event to provide the credentials for the data providers.
designer.LocateCredentials += (sender, args) => {
args.UserName = "sa";
args.Password = "12345";
}