ItemCollection.GetItem Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an item that is specified by the identity.
Overloads
GetItem<T>(String) |
Returns a strongly typed GlobalItem object by using the specified identity. |
GetItem<T>(String, Boolean) |
Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search. |
GetItem<T>(String)
Returns a strongly typed GlobalItem object by using the specified identity.
public:
generic <typename T>
where T : System::Data::Metadata::Edm::GlobalItem T GetItem(System::String ^ identity);
public T GetItem<T> (string identity) where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItem : string -> 'T (requires 'T :> System.Data.Metadata.Edm.GlobalItem)
Public Function GetItem(Of T As GlobalItem) (identity As String) As T
Type Parameters
- T
The type returned by the method.
Parameters
- identity
- String
The identity of the item.
Returns
The item that is specified by the identity.
Applies to
GetItem<T>(String, Boolean)
Returns a strongly typed GlobalItem object by using the specified identity with either case-sensitive or case-insensitive search.
public:
generic <typename T>
where T : System::Data::Metadata::Edm::GlobalItem T GetItem(System::String ^ identity, bool ignoreCase);
public T GetItem<T> (string identity, bool ignoreCase) where T : System.Data.Metadata.Edm.GlobalItem;
member this.GetItem : string * bool -> 'T (requires 'T :> System.Data.Metadata.Edm.GlobalItem)
Public Function GetItem(Of T As GlobalItem) (identity As String, ignoreCase As Boolean) As T
Type Parameters
- T
The type returned by the method.
Parameters
- identity
- String
The identity of the item.
- ignoreCase
- Boolean
true
to perform the case-insensitive search; otherwise, false
.
Returns
The item that is specified by the identity.
Applies to
Povratne informacije
https://aka.ms/ContentUserFeedback.
Kmalu na voljo: V letu 2024 bomo ukinili storitev Težave v storitvi GitHub kot mehanizem za povratne informacije za vsebino in jo zamenjali z novim sistemom za povratne informacije. Za več informacij si oglejte:Pošlji in prikaži povratne informacije za