Skip to main content
News Directory 3
  • Business
  • Entertainment
  • Health
  • News
  • Sports
  • Tech
  • World
Menu
  • Business
  • Entertainment
  • Health
  • News
  • Sports
  • Tech
  • World
ScopingExtensions.Imports Method (System.ComponentModel.Composition.Hosting) | Microsoft Learn - News Directory 3

ScopingExtensions.Imports Method (System.ComponentModel.Composition.Hosting) | Microsoft Learn

September 2, 2024 Catherine Williams Tech
News Context
At a glance
  • Determines whether the specified part imports the specified contract with the specified cardinality.
  • true if part imports a contract that has the specified name and cardinality; otherwise, false.
Original source: learn.microsoft.com

Source:ScopingExtensions.cs

Source:ScopingExtensions.cs

Source:ScopingExtensions.cs

Source:ScopingExtensions.cs

Determines whether the specified part imports the specified contract with the specified cardinality.

public:
[System::Runtime::CompilerServices::Extension]
static bool Imports(System::ComponentModel::Composition::Primitives::ComposablePartDefinition ^ part, System::String ^ contractName, System::ComponentModel::Composition::Primitives::ImportCardinality importCardinality);
public static bool Imports (this System.ComponentModel.Composition.Primitives.ComposablePartDefinition part, string contractName, System.ComponentModel.Composition.Primitives.ImportCardinality importCardinality);
static member Imports : System.ComponentModel.Composition.Primitives.ComposablePartDefinition * string * System.ComponentModel.Composition.Primitives.ImportCardinality -> bool

Public Function Imports (part As ComposablePartDefinition, contractName As String, importCardinality As ImportCardinality) As Boolean

Parameters

contractName

String

The name of the contract.

Returns

true if part imports a contract that has the specified name and cardinality; otherwise, false.

Share this:

  • Share on Facebook (Opens in new window) Facebook
  • Share on X (Opens in new window) X

Keep reading

  • How LEXICON Artists and Researchers are Shaping Boston’s Future Economy
  • Why Doctors Wear Sunblock Indoors
  • Nvidia and Microsoft launch open AI security alliance (time.news)

Related

Search:

News Directory 3

News Directory 3 catalogs US newspapers, news services, newsstands and digital news outlets across all 50 states. Browse local publishers by city, state, or topic, and follow current headlines linked back to their original sources.

Quick Links

  • Disclaimer
  • Terms and Conditions
  • About Us
  • Advertising Policy
  • Contact Us
  • Cookie Policy
  • Editorial Guidelines
  • Privacy Policy

Browse by State

  • Alabama
  • Alaska
  • Arizona
  • Arkansas
  • California
  • Colorado

© 2026 News Directory 3. All rights reserved.
For contact, advertising, copyright, issues email: office@newsdirectory3.com