DesignerView.OnReferenceUpdated(AssemblyName, Boolean) Method

Definition

Refreshes the list of imported namespaces based on whether the specified referenced assembly is added or removed.

public void OnReferenceUpdated (System.Reflection.AssemblyName updatedReference, bool isAdded);

Parameters

updatedReference
AssemblyName

The referenced assembly that is added or removed.

isAdded
Boolean

true if the assembly reference is added; false if the assembly reference is removed.

Remarks

If the referenced assembly is added, the namespaces of the types found in the assembly are added to the list of imported namespaces. If the referenced assembly is removed, the namespaces of the types found in the assembly are removed from the list of imported namespaces.

Applies to

产品 版本
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1