Udostępnij za pośrednictwem


Właściwość DtsLogProviderAttribute.IconResource

Pobiera lub ustawia ikony skojarzonej z dostawca dziennika.

Przestrzeń nazw:  Microsoft.SqlServer.Dts.Runtime
Zestaw:  Microsoft.SqlServer.ManagedDTS (w Microsoft.SqlServer.ManagedDTS.dll)

Składnia

'Deklaracja
Public Property IconResource As String
    Get
    Set
'Użycie
Dim instance As DtsLogProviderAttribute
Dim value As String

value = instance.IconResource

instance.IconResource = value
public string IconResource { get; set; }
public:
property String^ IconResource {
    String^ get ();
    void set (String^ value);
}
member IconResource : string with get, set
function get IconResource () : String
function set IconResource (value : String)

Wartość właściwości

Typ: System.String
Ciąg, który identyfikuje zasób ikonę dostawca dziennika.

Uwagi

Po określeniu tej właściwość identyfikuje ikony wyświetlane w Business Intelligence Development Studio Po wyświetleniu dostawca dziennika.

Ciąg powinien zawierać nazwę wirtualny plik dziennika i nazwa pliku ikony.Aby osadzić plik ikony jako zasób w zestawie przy użyciu programu Visual Studio.NET, zestaw ikonę Tworzenie akcji atrybut do Zasobów osadzonych.

Przykłady

W poniższym przykładzie dostawca dziennika klasy, która zawiera zasób ikony.W tym przykładzie plik ikony o nazwie MyLogProviderIcon.ico, i nazwa wirtualny plik dziennika 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