EntityExtensionsIsOfAnyType Method |
Returns a value indicating whether the entity identifier of the specified entity is of any of the
specified types.
Namespace:
SampSharp.Entities
Assembly:
SampSharp.Entities (in SampSharp.Entities.dll) Version: 0.0.0-localbuild+05637d43e9f34d872e453289d4e240c843e43b09
Syntax public static bool IsOfAnyType(
this EntityId entity,
params Guid[] types
)
Parameters
- entity
- Type: SampSharp.EntitiesEntityId
The entity to check. - types
- Type: SystemGuid
The entity identifier types to check for.
Return Value
Type:
Boolean
A value indicating whether the entity identifier of the specified
entity is of any of the
specified
types.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
EntityId. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also