共用方式為


CompartmentMapsReferToCompartment.SetCompartment Method

Sets Compartment.

Namespace:  Microsoft.VisualStudio.Modeling.DslDefinition
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.DslDefinition.10.0.dll)

Syntax

'宣告
Public Shared Sub SetCompartment ( _
    element As CompartmentMap, _
    newCompartment As Compartment _
)
public static void SetCompartment(
    CompartmentMap element,
    Compartment newCompartment
)
public:
static void SetCompartment(
    CompartmentMap^ element, 
    Compartment^ newCompartment
)
static member SetCompartment : 
        element:CompartmentMap * 
        newCompartment:Compartment -> unit 
public static function SetCompartment(
    element : CompartmentMap, 
    newCompartment : Compartment
)

Parameters

.NET Framework Security

See Also

Reference

CompartmentMapsReferToCompartment Class

Microsoft.VisualStudio.Modeling.DslDefinition Namespace