Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Locates a resource with the specified key.
Namespace: Microsoft.Windows.Design.Interaction
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public Shared Function TryFindResource ( _
key As ResourceKey _
) As Object
public static Object TryFindResource(
ResourceKey key
)
public:
static Object^ TryFindResource(
ResourceKey^ key
)
static member TryFindResource :
key:ResourceKey -> Object
public static function TryFindResource(
key : ResourceKey
) : Object
Parameters
- key
Type: System.Windows.ResourceKey
The key of the resource to find.
Return Value
Type: System.Object
The resource if it exists.
-or-
nulla null reference (Nothing in Visual Basic) if the specified resource does not exist.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | key is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Interaction Namespace