Поделиться через


Метод DtsProperty.SetExport

Sets the export flag for the specified object.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Sub SetExport ( _
    o As Object, _
    export As Boolean _
)
'Применение
Dim instance As DtsProperty 
Dim o As Object 
Dim export As Boolean

instance.SetExport(o, export)
public void SetExport(
    Object o,
    bool export
)
public:
void SetExport(
    Object^ o, 
    bool export
)
member SetExport : 
        o:Object * 
        export:bool -> unit
public function SetExport(
    o : Object, 
    export : boolean
)

Параметры

  • o
    Тип: System.Object
    The object on which the flag is being set.
  • export
    Тип: System.Boolean
    The Boolean value to set on the object's export flag.

Примеры

The following example shows the creation of a new package and a variable, var, being added to the Variables collection owned by the Package. A Variable has a Properties collection, as well as several other objects, and this example shows the SetExport method being set for the variable.

        Package p2 = new Package();
        Variable v = p2.Variables.Add("var", false, "", 1);
        p2.EnableConfigurations = true;
        Configuration c1 = p2.Configurations.Add();
        c1.ConfigurationString = @"c:\conf.ini";
        c1.ConfigurationType = DTSConfigurationType.IniFile;
        v.Properties["Value"].SetExport(v, true);
        // more code here…
        Dim p2 As Package =  New Package() 
        Dim v As Variable =  p2.Variables.Add("var",False,"",1) 
        p2.EnableConfigurations = True
        Dim c1 As Configuration =  p2.Configurations.Add() 
        c1.ConfigurationString = "c:\conf.ini"
        c1.ConfigurationType = DTSConfigurationType.IniFile
        v.Properties("Value").SetExport(v, True)
        ' more code here…

См. также

Справочник

DtsProperty Класс

Пространство имен Microsoft.SqlServer.Dts.Runtime