Язык

DtsLogProviderAttribute.IconResource Свойство

Определение

Получает или устанавливает значок, связанный с провайдером логов.

public:
 property System::String ^ IconResource { System::String ^ get(); void set(System::String ^ value); };
public string IconResource { get; set; }
member this.IconResource : string with get, set
Public Property IconResource As String

Значение свойства

Строка, которая идентифицирует ресурс иконок провайдера журнала.

Примеры

Следующий пример показывает класс провайдера журнала, который предоставляет ресурс иконок. В этом примере файл иконок называется MyLogProviderIcon.ico, а имя ассемблера — MyLogProvider.

using System;  
using Microsoft.SqlServer.Dts.Runtime;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
[DtsLogProvider(LogProviderType = "MyLOG",   
  DisplayName = "MyCustomLogProvider ",   
  Description = "Custom Log Provider")]  
public class MyCustomLogProvider : LogProviderBase  
{  
    // Your custom log provider code here.  
}  
}  
Imports System  
Imports Microsoft.SqlServer.Dts.Runtime  

<DtsLogProvider(LogProviderType:="MyLOG", _  
DisplayName:="MyCustomLogProvider ", _  
Description:="Custom Log Provider")> _  
Public Class MyCustomLogProvider  
  Inherits LogProviderBase  
  ' Your custom log provider code here.  
End Class  

Комментарии

При указании это свойство идентифицирует иконку, отображаемую в SQL Server Data Tools (SSDT), когда отображается провайдер логов.

Строка должна содержать имя сборки и имя файла иконок. Чтобы встроить файл иконок в ассембл с помощью Visual Studio .NET, установите атрибут Build Action на Embedded Resource.

Применяется к