Remove-CompactType [Deprecated]
This PowerShell cmdlet enables the users to remove the objects which are already defined as serializable.
Remove-CompactType -CacheName -Class [-Port] [-Server] [-Credentials] [-NoLogo]
Examples
- This command removes the compact serializable class Customer from the cache configuration of a cache named demoCache.
Remove-CompactType -CacheName demoCache -Class Data.Customer
- This command removes the compact serializable class Customer from the cache configuration of a cache named demoCache on server node 20.200.20.11.
Remove-CompactType -CacheName demoCache -Class Data.Customer –Server 20.200.20.11
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters |
Data Types |
Description |
Default Value |
-CacheName* |
<String> |
Specifies the name of the cache for which the compact type will be removed. |
- |
-Class* |
<String> |
Specifies the class which needs to be removed from compact serialization. |
- |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. |
False |
-Port |
<Integer> |
Specifies the server port where the NCache Service is listening. |
8250 |
-Server |
<String> |
Specifies the NCache server name where the NCache Service is running. |
- |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. |
- |
remove-compacttype -cachename -class [-port] [-server] [-userid] [-password] [-nologo]
Examples
- This command removes the compact serializable class Customer from the cache configuration of a cache named demoCache.
remove-compacttype -cachename demoCache -class Data.Customer
- This command removes the compact serializable class Customer from the cache configuration of a cache named demoCache on server node 20.200.20.11.
remove-compacttype -cachename demoCache -class Data.Customer -server 20.200.20.11
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters |
Data Types |
Description |
Default Value |
-cachename* |
<String> |
Specifies the name of the cache for which the compact type will be removed. |
- |
-class* |
<String> |
Specifies the class which needs to be removed from compact serialization. |
- |
-nologo |
<SwitchParameter> |
Suppresses display of the logo banner. |
False |
-port |
<Integer> |
Specifies the server port where the NCache Service is listening. |
8250 |
-server |
<String> |
Specifies the NCache server name where the NCache Service is running. |
- |
-userid |
<String> |
Specifies the user id used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This user id must be the active directory user id. |
- |
-password |
<String> |
Specifies the password of the user that is used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This password must be the same as the active directory user password. |
- |