<Type Name="DependencyFetchTarget" FullName="Microsoft.Maui.Controls.DependencyFetchTarget">
  <TypeSignature Language="C#" Value="public enum DependencyFetchTarget" />
  <TypeSignature Language="ILAsm" Value=".class public auto ansi sealed DependencyFetchTarget extends System.Enum" />
  <TypeSignature Language="DocId" Value="T:Microsoft.Maui.Controls.DependencyFetchTarget" />
  <TypeSignature Language="F#" Value="type DependencyFetchTarget = " />
  <AssemblyInfo>
    <AssemblyName>Microsoft.Maui.Controls.Core</AssemblyName>
    <AssemblyVersion>0.0.0.0</AssemblyVersion>
    <AssemblyVersion>1.0.0.0</AssemblyVersion>
    <AssemblyVersion>1.1.0.0</AssemblyVersion>
    <AssemblyVersion>1.2.0.0</AssemblyVersion>
    <AssemblyVersion>1.3.0.0</AssemblyVersion>
    <AssemblyVersion>1.4.0.0</AssemblyVersion>
    <AssemblyVersion>1.5.0.0</AssemblyVersion>
    <AssemblyVersion>2.0.0.0</AssemblyVersion>
  </AssemblyInfo>
  <Base>
    <BaseTypeName>System.Enum</BaseTypeName>
  </Base>
  <Docs>
    <summary>Enumeration specifying whether <see cref="M:Microsoft.Maui.Controls.DependencyService.Get``1(Microsoft.Maui.Controls.DependencyFetchTarget)" /> should return a reference to a global or new instance.</summary>
    <remarks>
      <para>The following example shows how <see cref="T:Microsoft.Maui.Controls.DependencyFetchTarget" /> can be used to specify a new instance:</para>
      <example>
        <code lang="csharp lang-csharp"><![CDATA[
var secondFetch = DependencyService.Get<IDependencyTest> (DependencyFetchTarget.NewInstance);
          ]]></code>
      </example>
    </remarks>
  </Docs>
  <Members>
    <Member MemberName="GlobalInstance">
      <MemberSignature Language="C#" Value="GlobalInstance" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Microsoft.Maui.Controls.DependencyFetchTarget GlobalInstance = int32(0)" />
      <MemberSignature Language="DocId" Value="F:Microsoft.Maui.Controls.DependencyFetchTarget.GlobalInstance" />
      <MemberSignature Language="F#" Value="GlobalInstance = 0" Usage="Microsoft.Maui.Controls.DependencyFetchTarget.GlobalInstance" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
        <AssemblyVersion>1.1.0.0</AssemblyVersion>
        <AssemblyVersion>1.2.0.0</AssemblyVersion>
        <AssemblyVersion>1.3.0.0</AssemblyVersion>
        <AssemblyVersion>1.4.0.0</AssemblyVersion>
        <AssemblyVersion>1.5.0.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyName>Microsoft.Maui.Controls.Core</AssemblyName>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Microsoft.Maui.Controls.DependencyFetchTarget</ReturnType>
      </ReturnValue>
      <MemberValue>0</MemberValue>
      <Docs>
        <summary>Return a global instance.</summary>
      </Docs>
    </Member>
    <Member MemberName="NewInstance">
      <MemberSignature Language="C#" Value="NewInstance" />
      <MemberSignature Language="ILAsm" Value=".field public static literal valuetype Microsoft.Maui.Controls.DependencyFetchTarget NewInstance = int32(1)" />
      <MemberSignature Language="DocId" Value="F:Microsoft.Maui.Controls.DependencyFetchTarget.NewInstance" />
      <MemberSignature Language="F#" Value="NewInstance = 1" Usage="Microsoft.Maui.Controls.DependencyFetchTarget.NewInstance" />
      <MemberType>Field</MemberType>
      <AssemblyInfo>
        <AssemblyVersion>0.0.0.0</AssemblyVersion>
        <AssemblyVersion>1.0.0.0</AssemblyVersion>
        <AssemblyVersion>1.1.0.0</AssemblyVersion>
        <AssemblyVersion>1.2.0.0</AssemblyVersion>
        <AssemblyVersion>1.3.0.0</AssemblyVersion>
        <AssemblyVersion>1.4.0.0</AssemblyVersion>
        <AssemblyVersion>1.5.0.0</AssemblyVersion>
        <AssemblyVersion>2.0.0.0</AssemblyVersion>
        <AssemblyName>Microsoft.Maui.Controls.Core</AssemblyName>
      </AssemblyInfo>
      <ReturnValue>
        <ReturnType>Microsoft.Maui.Controls.DependencyFetchTarget</ReturnType>
      </ReturnValue>
      <MemberValue>1</MemberValue>
      <Docs>
        <summary>Return a new instance.</summary>
      </Docs>
    </Member>
  </Members>
</Type>
